/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * EasyFastProyectGUI.java
 *
 * Created on 22/05/2011, 09:05:52 PM
 */
package vista;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JCheckBox;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTabbedPane;
import manager.*;
import manager.exceptions.NonexistentEntityException;
import manager.exceptions.PreexistingEntityException;
import org.jvnet.substance.SubstanceLookAndFeel;
//import org.jvnet.substance.watermark.SubstanceImageWatermark;
import persistencia.*;

/**
 *
 * @author Armando Jr
 */
public class EasyFastProyectGUI extends javax.swing.JFrame {

    /** Creates new form EasyFastProyectGUI */
    public EasyFastProyectGUI() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        pestana1 = new javax.swing.JTabbedPane();
        panGestionUsuarios = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        panCreaUsuario = new javax.swing.JPanel();
        jPanel39 = new javax.swing.JPanel();
        labelCedula = new javax.swing.JLabel();
        labelNombre = new javax.swing.JLabel();
        labelApellidos = new javax.swing.JLabel();
        labelExpLaboral = new javax.swing.JLabel();
        labelEspecialidad = new javax.swing.JLabel();
        labelTelf = new javax.swing.JLabel();
        labelEmail = new javax.swing.JLabel();
        labelLogin = new javax.swing.JLabel();
        labelPass = new javax.swing.JLabel();
        txtCedula = new javax.swing.JTextField();
        txtNombre = new javax.swing.JTextField();
        txtApellidos = new javax.swing.JTextField();
        txtDpto = new javax.swing.JTextField();
        txtDirResidencia = new javax.swing.JTextField();
        txtTelf = new javax.swing.JTextField();
        txtEmail = new javax.swing.JTextField();
        txtPass = new javax.swing.JTextField();
        txtLogin = new javax.swing.JTextField();
        jPanel9 = new javax.swing.JPanel();
        jCheckBox1 = new javax.swing.JCheckBox();
        jCheckBox2 = new javax.swing.JCheckBox();
        jCheckBox3 = new javax.swing.JCheckBox();
        jCheckBox5 = new javax.swing.JCheckBox();
        jPanel1 = new javax.swing.JPanel();
        botCreaUsuario = new javax.swing.JButton();
        botLimpiarCampos = new javax.swing.JButton();
        panModifUsuario = new javax.swing.JPanel();
        jPanel38 = new javax.swing.JPanel();
        labelCedulaModif = new javax.swing.JLabel();
        labelApellidosModif = new javax.swing.JLabel();
        labelExpLaboralModif = new javax.swing.JLabel();
        labelTelfModif = new javax.swing.JLabel();
        labelEmailModif = new javax.swing.JLabel();
        labelLoginModif = new javax.swing.JLabel();
        labelPassModif = new javax.swing.JLabel();
        txtCedulaModif = new javax.swing.JTextField();
        txtNombreModif = new javax.swing.JTextField();
        txtApellidosModif = new javax.swing.JTextField();
        txtExpLaboralModif = new javax.swing.JTextField();
        txtTelfModif = new javax.swing.JTextField();
        txtEmailModif = new javax.swing.JTextField();
        txtLoginModif = new javax.swing.JTextField();
        txtPassModif = new javax.swing.JTextField();
        labelNombreModif = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jPanel13 = new javax.swing.JPanel();
        jCheckBox6 = new javax.swing.JCheckBox();
        jCheckBox7 = new javax.swing.JCheckBox();
        jCheckBox8 = new javax.swing.JCheckBox();
        jCheckBox10 = new javax.swing.JCheckBox();
        jPanel4 = new javax.swing.JPanel();
        botGuardarModif = new javax.swing.JButton();
        botConsultarModif = new javax.swing.JButton();
        panBorrarUsuario = new javax.swing.JPanel();
        jPanel40 = new javax.swing.JPanel();
        labelCedulaEliminar = new javax.swing.JLabel();
        labelNombreEliminar = new javax.swing.JLabel();
        labelApellidosEliminar = new javax.swing.JLabel();
        labelExpLaboralEliminar = new javax.swing.JLabel();
        labelEstudiosEliminar = new javax.swing.JLabel();
        labelEspecialidadEliminar = new javax.swing.JLabel();
        labelTelfEliminar = new javax.swing.JLabel();
        labelEmailEliminar = new javax.swing.JLabel();
        labelLoginEliminar = new javax.swing.JLabel();
        labelPassEliminar = new javax.swing.JLabel();
        txtCedulaEliminar = new javax.swing.JTextField();
        txtNombreEliminar = new javax.swing.JTextField();
        txtApellidosEliminar = new javax.swing.JTextField();
        txtExpLaboralEliminar = new javax.swing.JTextField();
        txtEstudiosEliminar = new javax.swing.JTextField();
        txtEspecialidadEliminar = new javax.swing.JTextField();
        txtTelfEliminar = new javax.swing.JTextField();
        txtEmailEliminar = new javax.swing.JTextField();
        txtPassEliminar = new javax.swing.JTextField();
        txtLoginEliminar = new javax.swing.JTextField();
        jPanel6 = new javax.swing.JPanel();
        jButton5 = new javax.swing.JButton();
        botEliminarUsuario = new javax.swing.JButton();
        panGestionEvaluadores = new javax.swing.JPanel();
        jTabbedPane3 = new javax.swing.JTabbedPane();
        panCrearEvaluador = new javax.swing.JPanel();
        jPanel43 = new javax.swing.JPanel();
        labelCedulaCrEval = new javax.swing.JLabel();
        labelNombreCrEval = new javax.swing.JLabel();
        labelApellidosCrEval = new javax.swing.JLabel();
        labelExpLabCrEval = new javax.swing.JLabel();
        labelEstudiosCrEval = new javax.swing.JLabel();
        labelEspecialidadCrEval = new javax.swing.JLabel();
        labelTelfCrEval = new javax.swing.JLabel();
        labelEmailCrEval = new javax.swing.JLabel();
        labelLoginCrEval = new javax.swing.JLabel();
        labelPassCrEval = new javax.swing.JLabel();
        txtCedulaCrEval = new javax.swing.JTextField();
        txtNombreCrEval = new javax.swing.JTextField();
        txtApellidosCrEval = new javax.swing.JTextField();
        txtExpLabCrEval = new javax.swing.JTextField();
        txtEstudiosCrEval = new javax.swing.JTextField();
        txtEspecialidadCrEval = new javax.swing.JTextField();
        txtTelfCrEval = new javax.swing.JTextField();
        txtEmailCrEval = new javax.swing.JTextField();
        txtLoginCrEval = new javax.swing.JTextField();
        txtPassCrEval = new javax.swing.JTextField();
        botCrearEvaluador = new javax.swing.JButton();
        botLimpiarEval = new javax.swing.JButton();
        panModifEvaluador = new javax.swing.JPanel();
        btModificarEval = new javax.swing.JButton();
        btLimpiaDatosEvalModi = new javax.swing.JButton();
        panDatosEvalModi = new javax.swing.JPanel();
        lblCodEvalModi = new javax.swing.JLabel();
        lblnomEvalModi = new javax.swing.JLabel();
        lblApeEvalModi = new javax.swing.JLabel();
        lblExpLabEvalModi = new javax.swing.JLabel();
        lblEstEvalModi = new javax.swing.JLabel();
        lblEspEvalModi = new javax.swing.JLabel();
        lblTelEvalModi = new javax.swing.JLabel();
        lblEmaEvalModi = new javax.swing.JLabel();
        lblLogEvalModi = new javax.swing.JLabel();
        lblPasEvalModi = new javax.swing.JLabel();
        txtCodEvalModi = new javax.swing.JTextField();
        txtNomEvalModi = new javax.swing.JTextField();
        txtApeEvalModi = new javax.swing.JTextField();
        txtExpLabEvalModi = new javax.swing.JTextField();
        txtEstEvalModi = new javax.swing.JTextField();
        txtEspEvalModi = new javax.swing.JTextField();
        txtTelEvalModi = new javax.swing.JTextField();
        txtEmaEvalModi = new javax.swing.JTextField();
        txtLogEvalModi = new javax.swing.JTextField();
        txtPasEvalModi = new javax.swing.JTextField();
        btConsultarEval = new javax.swing.JButton();
        jPanel32 = new javax.swing.JPanel();
        jPanel41 = new javax.swing.JPanel();
        lblCodEvalElim = new javax.swing.JLabel();
        lblNomEvalElim = new javax.swing.JLabel();
        lblApeEvalElim = new javax.swing.JLabel();
        lblExpLabEvalElim = new javax.swing.JLabel();
        lblEstEvalElim = new javax.swing.JLabel();
        lblEspEvalElim = new javax.swing.JLabel();
        lblTelEvalElim = new javax.swing.JLabel();
        lblEmaEvalElim = new javax.swing.JLabel();
        lblLogEvalElim = new javax.swing.JLabel();
        lblPasEvalElim = new javax.swing.JLabel();
        txtCodEvalElim = new javax.swing.JTextField();
        txtNomEvalElim = new javax.swing.JTextField();
        txtApeEvalElim = new javax.swing.JTextField();
        txtExpLabEvalElim = new javax.swing.JTextField();
        txtEstEvalElim = new javax.swing.JTextField();
        txtEspEvalElim = new javax.swing.JTextField();
        txtTelEvalElim = new javax.swing.JTextField();
        txtEmaEvalElim = new javax.swing.JTextField();
        txtPasEvalElim = new javax.swing.JTextField();
        txtLogEvalElim = new javax.swing.JTextField();
        btConsultarCodElim = new javax.swing.JButton();
        btEliminarEvalua = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jPanel11 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        lbCodDepto = new javax.swing.JLabel();
        lblNomDepto = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        txtCodDepto = new javax.swing.JTextField();
        txtNomDepto = new javax.swing.JTextField();
        txtTelDepto = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtDesDepto = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();
        txtCodJefeDepto = new javax.swing.JTextField();
        btConsultarJefDeptoCr = new javax.swing.JButton();
        btCrearDpto = new javax.swing.JButton();
        LimpiarDatosDpto = new javax.swing.JButton();
        jPanel17 = new javax.swing.JPanel();
        panModifDepto = new javax.swing.JPanel();
        lblCodDeptoModif = new javax.swing.JLabel();
        lblNomDeptoModif = new javax.swing.JLabel();
        lblTelDeptoModif = new javax.swing.JLabel();
        txtCodDeptoModif = new javax.swing.JTextField();
        txtNomDeptoModif = new javax.swing.JTextField();
        txtTelDeptoModif = new javax.swing.JTextField();
        lblDesDeptoModif = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        txtDesDeptoModif = new javax.swing.JTextArea();
        txtCodJefeDeptoModif = new javax.swing.JTextField();
        lblCodJefeDeptoModif = new javax.swing.JLabel();
        btConsultarJefeDpto = new javax.swing.JButton();
        btConsultarJefeDptoModi = new javax.swing.JButton();
        btLimpDatosDepto = new javax.swing.JButton();
        btModificarDepto = new javax.swing.JButton();
        jPanel18 = new javax.swing.JPanel();
        jPanel23 = new javax.swing.JPanel();
        lblCodDeptoElim = new javax.swing.JLabel();
        lblNomDeptoElim = new javax.swing.JLabel();
        lblTelDeptoElim = new javax.swing.JLabel();
        txtCodDeptoElim = new javax.swing.JTextField();
        txtNomDeptoElim = new javax.swing.JTextField();
        txtTelDeptoElim = new javax.swing.JTextField();
        lblDesDeptoElim = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        txtDesDeptoElim = new javax.swing.JTextArea();
        btBuscarDptoElim = new javax.swing.JButton();
        lblCodJefeDeptoElim = new javax.swing.JLabel();
        txtCodJefeDeptoElim = new javax.swing.JTextField();
        btBorrarDpto = new javax.swing.JButton();
        panGestionProyecto = new javax.swing.JPanel();
        jTabbedPane4 = new javax.swing.JTabbedPane();
        panCreaProyecto = new javax.swing.JPanel();
        panDataGeneralProyecto = new javax.swing.JPanel();
        lblCodProyCrear = new javax.swing.JLabel();
        lblNomProyCrear = new javax.swing.JLabel();
        lblEmpProyCrear = new javax.swing.JLabel();
        lblDepProyCrear = new javax.swing.JLabel();
        lblDesProyCrear = new javax.swing.JLabel();
        txtCodProyCrear = new javax.swing.JTextField();
        txtNomProyCrear = new javax.swing.JTextField();
        txtEmpProyCrear = new javax.swing.JTextField();
        txtDepProyCrear = new javax.swing.JTextField();
        btBusEmpProyCrear = new javax.swing.JButton();
        btBusDepProyCrear = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        txtDesProyCrear = new javax.swing.JTextArea();
        btSubirProy = new javax.swing.JButton();
        btLimpiarCamposProy = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        txtRutaArchivo = new javax.swing.JTextField();
        btnExaminar = new javax.swing.JButton();
        btnGuardarArchivoCr = new javax.swing.JButton();
        panModificarProyecto = new javax.swing.JPanel();
        panFinanzaProyModi = new javax.swing.JPanel();
        lblPresProyModi = new javax.swing.JLabel();
        lblAhoProyModi = new javax.swing.JLabel();
        lblRenProyModi = new javax.swing.JLabel();
        txtPresProyModi = new javax.swing.JTextField();
        txtAhoProyModi = new javax.swing.JTextField();
        txtRenProyModi = new javax.swing.JTextField();
        panEstadoProyecto = new javax.swing.JPanel();
        rbtRegtProyModi = new javax.swing.JRadioButton();
        rbtEvalProyModi = new javax.swing.JRadioButton();
        rbtAcepProyModi = new javax.swing.JRadioButton();
        rbtRechProyModi = new javax.swing.JRadioButton();
        lblFecIniProyModi = new javax.swing.JLabel();
        lblFecFinProyModi = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        txtFecIniProyModi = new javax.swing.JTextField();
        txtFecFinProyModi = new javax.swing.JTextField();
        lblEstProyModi = new javax.swing.JLabel();
        panDataGeneralProyecto1 = new javax.swing.JPanel();
        lblCodProyModi = new javax.swing.JLabel();
        lblNomProyModi = new javax.swing.JLabel();
        lblEmpProyModi = new javax.swing.JLabel();
        lblDepProyModi = new javax.swing.JLabel();
        lblDesProyModi = new javax.swing.JLabel();
        txtCodProyModi = new javax.swing.JTextField();
        txtNomProyModi = new javax.swing.JTextField();
        txtEmpProyModi = new javax.swing.JTextField();
        txtDepProyModi = new javax.swing.JTextField();
        btBusEmpProyModi = new javax.swing.JButton();
        btBusDepProyModi = new javax.swing.JButton();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDesProyModi = new javax.swing.JTextArea();
        btBusProyModi = new javax.swing.JButton();
        panArchivosModi = new javax.swing.JPanel();
        btModificarProy = new javax.swing.JButton();
        btLimpiaDatosProyModi = new javax.swing.JButton();
        panEliminarProyecto = new javax.swing.JPanel();
        panDataGeneralProyecto2 = new javax.swing.JPanel();
        lblCodProyRech = new javax.swing.JLabel();
        lblNomProyRech = new javax.swing.JLabel();
        lblNomEmpProyRech = new javax.swing.JLabel();
        lblDepProyRech = new javax.swing.JLabel();
        lblDesProyRech = new javax.swing.JLabel();
        txtCodProyRech = new javax.swing.JTextField();
        txtNomProyRech = new javax.swing.JTextField();
        txtNomEmpProyRech = new javax.swing.JTextField();
        txtDepProyRech = new javax.swing.JTextField();
        jButton9 = new javax.swing.JButton();
        jScrollPane6 = new javax.swing.JScrollPane();
        txtDesProyRech = new javax.swing.JTextArea();
        jButton3 = new javax.swing.JButton();
        panFinanzaProyecto1 = new javax.swing.JPanel();
        lblPresProyRech = new javax.swing.JLabel();
        lblAhoProyRech = new javax.swing.JLabel();
        lblRenProyRech = new javax.swing.JLabel();
        txtPresProyRech = new javax.swing.JTextField();
        txtAhoProyRech = new javax.swing.JTextField();
        txtRenProyRech = new javax.swing.JTextField();
        panEstadoProyecto1 = new javax.swing.JPanel();
        rbtRegisRech = new javax.swing.JRadioButton();
        rbtEvalRech = new javax.swing.JRadioButton();
        rbtAcepRech = new javax.swing.JRadioButton();
        lblFecIniProyRech = new javax.swing.JLabel();
        lblFecFinProyRech = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        txtFecIniProyRech = new javax.swing.JTextField();
        txtFecFinProyRech = new javax.swing.JTextField();
        jLabel31 = new javax.swing.JLabel();
        panArchProyRech = new javax.swing.JPanel();
        btRechazaProy = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jPanel24 = new javax.swing.JPanel();
        jPaneEvaluacionPROYECTO = new javax.swing.JTabbedPane();
        jPanel21 = new javax.swing.JPanel();
        panEvaluarProyectos = new javax.swing.JPanel();
        jButton2 = new javax.swing.JButton();
        jScrollPane7 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jButton4 = new javax.swing.JButton();
        jPanel12 = new javax.swing.JPanel();
        jPanelAsignarEvaluadores = new javax.swing.JPanel();
        jButtonConsultarEva = new javax.swing.JButton();
        jPanelAsignarEvaluadores1 = new javax.swing.JPanel();
        lbCodDepto2 = new javax.swing.JLabel();
        jTextCodigoProy = new javax.swing.JTextField();
        jButtonBuscarAsigEva = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        txtNomProyectoAsigEva = new javax.swing.JTextField();
        txtCodDeptoAsigEva = new javax.swing.JTextField();
        txtNomDeptoAsigEva = new javax.swing.JTextField();
        jPanel7 = new javax.swing.JPanel();
        jTabbedPane5 = new javax.swing.JTabbedPane();
        jPanel8 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        txtCodDeptoPDF = new javax.swing.JTextField();
        btConsultarDptoPDF = new javax.swing.JButton();
        reportePDFDepto = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Easy+Fast Proyect");
        setBackground(new java.awt.Color(255, 255, 255));
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setMinimumSize(new java.awt.Dimension(400, 300));

        pestana1.setBackground(new java.awt.Color(0, 0, 0));

        jPanel39.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Datos Usuario"));

        labelCedula.setText("Cédula");

        labelNombre.setText("Nombre");

        labelApellidos.setText("Apellidos");

        labelExpLaboral.setText("ID Departamento");

        labelEspecialidad.setText("Direccion Residencia");

        labelTelf.setText("Telefono Residencia");

        labelEmail.setText("E-mail");

        labelLogin.setText("Login");

        labelPass.setText("Password");

        txtCedula.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCedulaActionPerformed(evt);
            }
        });

        txtNombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtNombreActionPerformed(evt);
            }
        });

        txtApellidos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtApellidosActionPerformed(evt);
            }
        });

        txtDpto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDptoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel39Layout = new javax.swing.GroupLayout(jPanel39);
        jPanel39.setLayout(jPanel39Layout);
        jPanel39Layout.setHorizontalGroup(
            jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel39Layout.createSequentialGroup()
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel39Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labelCedula)
                            .addComponent(labelNombre)
                            .addComponent(labelApellidos)
                            .addComponent(labelExpLaboral)))
                    .addGroup(jPanel39Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelEspecialidad))
                    .addGroup(jPanel39Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelTelf))
                    .addGroup(jPanel39Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelEmail))
                    .addGroup(jPanel39Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelLogin))
                    .addGroup(jPanel39Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelPass)))
                .addGap(23, 23, 23)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtLogin, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
                    .addComponent(txtPass, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
                    .addComponent(txtEmail, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
                    .addComponent(txtTelf, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(txtNombre)
                        .addComponent(txtApellidos)
                        .addComponent(txtDpto)
                        .addComponent(txtCedula, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
                        .addComponent(txtDirResidencia)))
                .addGap(20, 20, 20))
        );
        jPanel39Layout.setVerticalGroup(
            jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel39Layout.createSequentialGroup()
                .addGap(8, 8, 8)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelCedula)
                    .addComponent(txtCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNombre)
                    .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelApellidos)
                    .addComponent(txtApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelExpLaboral)
                    .addComponent(txtDpto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtDirResidencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelEspecialidad))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelTelf))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelEmail))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtPass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelLogin))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelPass))
                .addGap(58, 58, 58))
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Perfil Usuario"));

        buttonGroup1.add(jCheckBox1);
        jCheckBox1.setText("Administrador");

        buttonGroup1.add(jCheckBox2);
        jCheckBox2.setText("Jefe de Departamento");

        buttonGroup1.add(jCheckBox3);
        jCheckBox3.setText("Manager de Proyecto");

        buttonGroup1.add(jCheckBox5);
        jCheckBox5.setText("Promotor de Proyectos");

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jCheckBox5)
                    .addComponent(jCheckBox3)
                    .addComponent(jCheckBox2)
                    .addComponent(jCheckBox1))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jCheckBox1)
                .addGap(36, 36, 36)
                .addComponent(jCheckBox2)
                .addGap(37, 37, 37)
                .addComponent(jCheckBox3)
                .addGap(52, 52, 52)
                .addComponent(jCheckBox5)
                .addContainerGap(41, Short.MAX_VALUE))
        );

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Acciones"));

        botCreaUsuario.setText("Crear Usuario");
        botCreaUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botCreaUsuarioActionPerformed(evt);
            }
        });

        botLimpiarCampos.setText("Limpiar Campos");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(137, 137, 137)
                .addComponent(botCreaUsuario)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 157, Short.MAX_VALUE)
                .addComponent(botLimpiarCampos)
                .addGap(139, 139, 139))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botCreaUsuario)
                    .addComponent(botLimpiarCampos))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panCreaUsuarioLayout = new javax.swing.GroupLayout(panCreaUsuario);
        panCreaUsuario.setLayout(panCreaUsuarioLayout);
        panCreaUsuarioLayout.setHorizontalGroup(
            panCreaUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCreaUsuarioLayout.createSequentialGroup()
                .addGap(86, 86, 86)
                .addGroup(panCreaUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(panCreaUsuarioLayout.createSequentialGroup()
                        .addComponent(jPanel39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(139, 139, 139))
        );
        panCreaUsuarioLayout.setVerticalGroup(
            panCreaUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panCreaUsuarioLayout.createSequentialGroup()
                .addGap(77, 77, 77)
                .addGroup(panCreaUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel39, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(83, 83, 83))
        );

        jTabbedPane1.addTab("Crear Usuario", panCreaUsuario);

        jPanel38.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Datos Usuario"));

        labelCedulaModif.setText("Cédula");

        labelApellidosModif.setText("Apellidos");

        labelExpLaboralModif.setText("ID Departamento");

        labelTelfModif.setText("Direccion Residencia");

        labelEmailModif.setText("Telefono Residencia");

        labelLoginModif.setText("E-mail");

        labelPassModif.setText("Login");

        txtNombreModif.setEditable(false);

        txtApellidosModif.setEditable(false);

        txtExpLaboralModif.setEditable(false);

        txtTelfModif.setEditable(false);

        txtEmailModif.setEditable(false);

        txtLoginModif.setEditable(false);

        txtPassModif.setEditable(false);

        labelNombreModif.setText("Nombre");

        jTextField1.setEditable(false);

        jLabel2.setText("Password");

        javax.swing.GroupLayout jPanel38Layout = new javax.swing.GroupLayout(jPanel38);
        jPanel38.setLayout(jPanel38Layout);
        jPanel38Layout.setHorizontalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel38Layout.createSequentialGroup()
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labelApellidosModif)
                            .addGroup(jPanel38Layout.createSequentialGroup()
                                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labelCedulaModif)
                                    .addComponent(labelNombreModif)
                                    .addComponent(labelExpLaboralModif))
                                .addGap(38, 38, 38)
                                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(txtExpLaboralModif, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
                                    .addComponent(txtCedulaModif, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
                                    .addComponent(txtNombreModif, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
                                    .addComponent(txtApellidosModif, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)))))
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelTelfModif)
                        .addGap(24, 24, 24)
                        .addComponent(txtTelfModif, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE))
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelEmailModif)
                        .addGap(25, 25, 25)
                        .addComponent(txtEmailModif, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE))
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelLoginModif)
                        .addGap(93, 93, 93)
                        .addComponent(txtLoginModif, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE))
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelPassModif)
                        .addGap(96, 96, 96)
                        .addComponent(txtPassModif, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE))
                    .addGroup(jPanel38Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel2)
                        .addGap(75, 75, 75)
                        .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel38Layout.setVerticalGroup(
            jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel38Layout.createSequentialGroup()
                .addGap(17, 17, 17)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelCedulaModif)
                    .addComponent(txtCedulaModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNombreModif)
                    .addComponent(txtNombreModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelApellidosModif)
                    .addComponent(txtApellidosModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelExpLaboralModif)
                    .addComponent(txtExpLaboralModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(8, 8, 8)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelfModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelTelfModif))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelEmailModif)
                    .addComponent(txtEmailModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelLoginModif)
                    .addComponent(txtLoginModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelPassModif)
                    .addComponent(txtPassModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Perfil Usuario"));

        buttonGroup2.add(jCheckBox6);
        jCheckBox6.setText("Administrador");

        buttonGroup2.add(jCheckBox7);
        jCheckBox7.setText("Jefe de Departamento");

        buttonGroup2.add(jCheckBox8);
        jCheckBox8.setText("Manager de Proyecto");

        buttonGroup2.add(jCheckBox10);
        jCheckBox10.setText("Promotor de Proyectos");

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jCheckBox7)
                    .addComponent(jCheckBox8)
                    .addComponent(jCheckBox10)
                    .addComponent(jCheckBox6))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jCheckBox6)
                .addGap(40, 40, 40)
                .addComponent(jCheckBox7)
                .addGap(42, 42, 42)
                .addComponent(jCheckBox8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)
                .addComponent(jCheckBox10)
                .addGap(34, 34, 34))
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "acciones"));

        botGuardarModif.setText("Guardar");
        botGuardarModif.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botGuardarModifActionPerformed(evt);
            }
        });

        botConsultarModif.setText("Consultar");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(167, 167, 167)
                .addComponent(botConsultarModif)
                .addGap(147, 147, 147)
                .addComponent(botGuardarModif)
                .addContainerGap(170, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botConsultarModif)
                    .addComponent(botGuardarModif))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panModifUsuarioLayout = new javax.swing.GroupLayout(panModifUsuario);
        panModifUsuario.setLayout(panModifUsuarioLayout);
        panModifUsuarioLayout.setHorizontalGroup(
            panModifUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panModifUsuarioLayout.createSequentialGroup()
                .addGap(102, 102, 102)
                .addGroup(panModifUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panModifUsuarioLayout.createSequentialGroup()
                        .addComponent(jPanel38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(128, Short.MAX_VALUE))
        );
        panModifUsuarioLayout.setVerticalGroup(
            panModifUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panModifUsuarioLayout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addGroup(panModifUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel38, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(83, 83, 83))
        );

        jTabbedPane1.addTab("Modificar Usuario", panModifUsuario);

        jPanel40.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Datos Usuario"));

        labelCedulaEliminar.setText("Cédula");

        labelNombreEliminar.setText("Nombre");

        labelApellidosEliminar.setText("Apellidos");

        labelExpLaboralEliminar.setText("ID Departamento");

        labelEstudiosEliminar.setText("Cargo");

        labelEspecialidadEliminar.setText("Direccion Residencia");

        labelTelfEliminar.setText("Telefono Residencia");

        labelEmailEliminar.setText("E-mail");

        labelLoginEliminar.setText("Login");

        labelPassEliminar.setText("Password");

        txtNombreEliminar.setEditable(false);

        txtApellidosEliminar.setEditable(false);

        txtExpLaboralEliminar.setEditable(false);

        txtEstudiosEliminar.setEditable(false);

        txtEspecialidadEliminar.setEditable(false);

        txtTelfEliminar.setEditable(false);

        txtEmailEliminar.setEditable(false);

        txtPassEliminar.setEditable(false);

        txtLoginEliminar.setEditable(false);

        javax.swing.GroupLayout jPanel40Layout = new javax.swing.GroupLayout(jPanel40);
        jPanel40.setLayout(jPanel40Layout);
        jPanel40Layout.setHorizontalGroup(
            jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel40Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelCedulaEliminar)
                    .addComponent(labelNombreEliminar)
                    .addComponent(labelExpLaboralEliminar)
                    .addComponent(labelApellidosEliminar)
                    .addComponent(labelEspecialidadEliminar)
                    .addComponent(labelEstudiosEliminar)
                    .addComponent(labelTelfEliminar)
                    .addComponent(labelEmailEliminar)
                    .addComponent(labelLoginEliminar)
                    .addComponent(labelPassEliminar))
                .addGap(24, 24, 24)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtCedulaEliminar, javax.swing.GroupLayout.DEFAULT_SIZE, 324, Short.MAX_VALUE)
                    .addComponent(txtNombreEliminar)
                    .addComponent(txtLoginEliminar)
                    .addComponent(txtApellidosEliminar)
                    .addComponent(txtExpLaboralEliminar)
                    .addComponent(txtEstudiosEliminar)
                    .addComponent(txtEspecialidadEliminar)
                    .addComponent(txtTelfEliminar)
                    .addComponent(txtEmailEliminar)
                    .addComponent(txtPassEliminar))
                .addContainerGap())
        );
        jPanel40Layout.setVerticalGroup(
            jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel40Layout.createSequentialGroup()
                .addGap(8, 8, 8)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelCedulaEliminar)
                    .addComponent(txtCedulaEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelNombreEliminar)
                    .addComponent(txtNombreEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelApellidosEliminar)
                    .addComponent(txtLoginEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelExpLaboralEliminar)
                    .addComponent(txtApellidosEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelEstudiosEliminar)
                    .addComponent(txtExpLaboralEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelEspecialidadEliminar)
                    .addComponent(txtEstudiosEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTelfEliminar)
                    .addComponent(txtEspecialidadEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelEmailEliminar)
                    .addComponent(txtTelfEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelLoginEliminar)
                    .addComponent(txtEmailEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelPassEliminar)
                    .addComponent(txtPassEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Acciones"));

        jButton5.setText("Consultar");

        botEliminarUsuario.setText("Eliminar");
        botEliminarUsuario.setEnabled(false);

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(95, Short.MAX_VALUE)
                .addComponent(jButton5)
                .addGap(83, 83, 83)
                .addComponent(botEliminarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(76, 76, 76))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botEliminarUsuario)
                    .addComponent(jButton5))
                .addGap(29, 29, 29))
        );

        javax.swing.GroupLayout panBorrarUsuarioLayout = new javax.swing.GroupLayout(panBorrarUsuario);
        panBorrarUsuario.setLayout(panBorrarUsuarioLayout);
        panBorrarUsuarioLayout.setHorizontalGroup(
            panBorrarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panBorrarUsuarioLayout.createSequentialGroup()
                .addGap(198, 198, 198)
                .addGroup(panBorrarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel40, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(206, 206, 206))
        );
        panBorrarUsuarioLayout.setVerticalGroup(
            panBorrarUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panBorrarUsuarioLayout.createSequentialGroup()
                .addGap(69, 69, 69)
                .addComponent(jPanel40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(96, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Eliminar Usuario", panBorrarUsuario);

        javax.swing.GroupLayout panGestionUsuariosLayout = new javax.swing.GroupLayout(panGestionUsuarios);
        panGestionUsuarios.setLayout(panGestionUsuariosLayout);
        panGestionUsuariosLayout.setHorizontalGroup(
            panGestionUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panGestionUsuariosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 879, Short.MAX_VALUE)
                .addContainerGap())
        );
        panGestionUsuariosLayout.setVerticalGroup(
            panGestionUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panGestionUsuariosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1)
                .addContainerGap())
        );

        pestana1.addTab("Gestios de Usuarios", new javax.swing.ImageIcon(getClass().getResource("/vista/foto.png")), panGestionUsuarios); // NOI18N

        jPanel43.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(""), "Datos Evaluador"));

        labelCedulaCrEval.setText("Cedula");

        labelNombreCrEval.setText("Nombre");

        labelApellidosCrEval.setText("Apellidos");

        labelExpLabCrEval.setText("Experiencia Laboral");

        labelEstudiosCrEval.setText("Estudios");

        labelEspecialidadCrEval.setText("Especialidad");

        labelTelfCrEval.setText("Telefono Residencia");

        labelEmailCrEval.setText("E-mail");

        labelLoginCrEval.setText("Login");

        labelPassCrEval.setText("Password");

        txtCedulaCrEval.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCedulaCrEvalFocusLost(evt);
            }
        });

        javax.swing.GroupLayout jPanel43Layout = new javax.swing.GroupLayout(jPanel43);
        jPanel43.setLayout(jPanel43Layout);
        jPanel43Layout.setHorizontalGroup(
            jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel43Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelNombreCrEval)
                    .addComponent(labelApellidosCrEval)
                    .addComponent(labelExpLabCrEval)
                    .addComponent(labelEstudiosCrEval)
                    .addComponent(labelEspecialidadCrEval)
                    .addComponent(labelTelfCrEval)
                    .addComponent(labelEmailCrEval)
                    .addComponent(labelLoginCrEval)
                    .addComponent(labelPassCrEval)
                    .addComponent(labelCedulaCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtPassCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtLoginCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtEmailCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtTelfCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtEspecialidadCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtEstudiosCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtExpLabCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellidosCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNombreCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCedulaCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(469, 469, 469))
        );
        jPanel43Layout.setVerticalGroup(
            jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel43Layout.createSequentialGroup()
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtCedulaCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelCedulaCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNombreCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelNombreCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtApellidosCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelApellidosCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtExpLabCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelExpLabCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEstudiosCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelEstudiosCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEspecialidadCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelEspecialidadCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelfCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelTelfCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEmailCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelEmailCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtLoginCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelLoginCrEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtPassCrEval, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelPassCrEval)))
        );

        botCrearEvaluador.setText("Crear Evaluador");
        botCrearEvaluador.setEnabled(false);
        botCrearEvaluador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botCrearEvaluadorActionPerformed(evt);
            }
        });

        botLimpiarEval.setText("Limpiar Campos");
        botLimpiarEval.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botLimpiarEvalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panCrearEvaluadorLayout = new javax.swing.GroupLayout(panCrearEvaluador);
        panCrearEvaluador.setLayout(panCrearEvaluadorLayout);
        panCrearEvaluadorLayout.setHorizontalGroup(
            panCrearEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCrearEvaluadorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panCrearEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel43, javax.swing.GroupLayout.PREFERRED_SIZE, 554, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panCrearEvaluadorLayout.createSequentialGroup()
                        .addComponent(botCrearEvaluador)
                        .addGap(26, 26, 26)
                        .addComponent(botLimpiarEval)))
                .addContainerGap(301, Short.MAX_VALUE))
        );
        panCrearEvaluadorLayout.setVerticalGroup(
            panCrearEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCrearEvaluadorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(panCrearEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botCrearEvaluador)
                    .addComponent(botLimpiarEval))
                .addGap(163, 163, 163))
        );

        jTabbedPane3.addTab("Crear Evaluador", panCrearEvaluador);

        btModificarEval.setText("Guardar cambios");
        btModificarEval.setEnabled(false);
        btModificarEval.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btModificarEvalActionPerformed(evt);
            }
        });

        btLimpiaDatosEvalModi.setText("Limpiar Datos");
        btLimpiaDatosEvalModi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btLimpiaDatosEvalModiActionPerformed(evt);
            }
        });

        panDatosEvalModi.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(""), "Datos Evaluador"));

        lblCodEvalModi.setText("Cédula");

        lblnomEvalModi.setText("Nombre");

        lblApeEvalModi.setText("Apellidos");

        lblExpLabEvalModi.setText("Experiencia Laboral");

        lblEstEvalModi.setText("Estudios");

        lblEspEvalModi.setText("Especialidad");

        lblTelEvalModi.setText("Telefono Residencia");

        lblEmaEvalModi.setText("E-mail");

        lblLogEvalModi.setText("Login");

        lblPasEvalModi.setText("Password");

        txtCodEvalModi.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodEvalModiFocusLost(evt);
            }
        });

        txtNomEvalModi.setEditable(false);

        txtApeEvalModi.setEditable(false);

        txtExpLabEvalModi.setEditable(false);

        txtEstEvalModi.setEditable(false);

        txtEspEvalModi.setEditable(false);

        txtTelEvalModi.setEditable(false);
        txtTelEvalModi.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtTelEvalModiFocusLost(evt);
            }
        });

        txtEmaEvalModi.setEditable(false);

        txtLogEvalModi.setEditable(false);

        txtPasEvalModi.setEnabled(false);

        btConsultarEval.setText("...");
        btConsultarEval.setEnabled(false);
        btConsultarEval.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btConsultarEvalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panDatosEvalModiLayout = new javax.swing.GroupLayout(panDatosEvalModi);
        panDatosEvalModi.setLayout(panDatosEvalModiLayout);
        panDatosEvalModiLayout.setHorizontalGroup(
            panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDatosEvalModiLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblCodEvalModi)
                    .addComponent(lblnomEvalModi)
                    .addComponent(lblExpLabEvalModi)
                    .addComponent(lblApeEvalModi)
                    .addComponent(lblEstEvalModi)
                    .addComponent(lblEspEvalModi)
                    .addComponent(lblTelEvalModi)
                    .addComponent(lblEmaEvalModi)
                    .addComponent(lblLogEvalModi)
                    .addComponent(lblPasEvalModi))
                .addGap(21, 21, 21)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtNomEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panDatosEvalModiLayout.createSequentialGroup()
                        .addComponent(txtCodEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(37, 37, 37)
                        .addComponent(btConsultarEval))
                    .addComponent(txtApeEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtExpLabEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtEstEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtEspEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtTelEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtEmaEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtLogEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtPasEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(528, 528, 528))
        );
        panDatosEvalModiLayout.setVerticalGroup(
            panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDatosEvalModiLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCodEvalModi)
                    .addComponent(btConsultarEval))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNomEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblnomEvalModi))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblApeEvalModi)
                    .addComponent(txtApeEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblExpLabEvalModi)
                    .addComponent(txtExpLabEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEstEvalModi)
                    .addComponent(txtEstEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEspEvalModi)
                    .addComponent(txtEspEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTelEvalModi)
                    .addComponent(txtTelEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEmaEvalModi)
                    .addComponent(txtEmaEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblLogEvalModi)
                    .addComponent(txtLogEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panDatosEvalModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblPasEvalModi)
                    .addComponent(txtPasEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(26, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panModifEvaluadorLayout = new javax.swing.GroupLayout(panModifEvaluador);
        panModifEvaluador.setLayout(panModifEvaluadorLayout);
        panModifEvaluadorLayout.setHorizontalGroup(
            panModifEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panModifEvaluadorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panModifEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panModifEvaluadorLayout.createSequentialGroup()
                        .addComponent(btModificarEval)
                        .addGap(68, 68, 68)
                        .addComponent(btLimpiaDatosEvalModi))
                    .addComponent(panDatosEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, 668, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(187, Short.MAX_VALUE))
        );
        panModifEvaluadorLayout.setVerticalGroup(
            panModifEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panModifEvaluadorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panDatosEvalModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panModifEvaluadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btModificarEval)
                    .addComponent(btLimpiaDatosEvalModi))
                .addContainerGap(138, Short.MAX_VALUE))
        );

        jTabbedPane3.addTab("Modificar Evaluador", panModifEvaluador);

        jPanel41.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(""), "Datos Evaluador"));

        lblCodEvalElim.setText("Cédula");

        lblNomEvalElim.setText("Nombre");

        lblApeEvalElim.setText("Apellidos");

        lblExpLabEvalElim.setText("Experiencia Laboral");

        lblEstEvalElim.setText("Estudios");

        lblEspEvalElim.setText("Especialidad");

        lblTelEvalElim.setText("Telefono Residencia");

        lblEmaEvalElim.setText("E-mail");

        lblLogEvalElim.setText("Login");

        lblPasEvalElim.setText("Password");

        txtCodEvalElim.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodEvalElimFocusLost(evt);
            }
        });

        txtNomEvalElim.setEditable(false);

        txtApeEvalElim.setEditable(false);

        txtExpLabEvalElim.setEditable(false);

        txtEstEvalElim.setEditable(false);

        txtEspEvalElim.setEditable(false);

        txtTelEvalElim.setEditable(false);

        txtEmaEvalElim.setEditable(false);

        txtPasEvalElim.setEditable(false);

        txtLogEvalElim.setEditable(false);

        btConsultarCodElim.setText("...");
        btConsultarCodElim.setEnabled(false);
        btConsultarCodElim.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btConsultarCodElimActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel41Layout = new javax.swing.GroupLayout(jPanel41);
        jPanel41.setLayout(jPanel41Layout);
        jPanel41Layout.setHorizontalGroup(
            jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel41Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel41Layout.createSequentialGroup()
                        .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblExpLabEvalElim)
                            .addComponent(lblEspEvalElim)
                            .addComponent(lblTelEvalElim)
                            .addComponent(lblCodEvalElim)
                            .addComponent(lblEstEvalElim)
                            .addComponent(lblPasEvalElim)
                            .addComponent(lblNomEvalElim)
                            .addComponent(lblApeEvalElim))
                        .addGap(23, 23, 23)
                        .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(txtExpLabEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, 490, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtEstEvalElim, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 490, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtEspEvalElim, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 490, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtTelEvalElim, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtEmaEvalElim, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtLogEvalElim, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel41Layout.createSequentialGroup()
                                .addComponent(txtCodEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btConsultarCodElim))
                            .addComponent(txtPasEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtNomEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtApeEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(lblEmaEvalElim)
                    .addComponent(lblLogEvalElim))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        jPanel41Layout.setVerticalGroup(
            jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel41Layout.createSequentialGroup()
                .addContainerGap(15, Short.MAX_VALUE)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCodEvalElim)
                    .addComponent(txtCodEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btConsultarCodElim))
                .addGap(11, 11, 11)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblExpLabEvalElim)
                    .addGroup(jPanel41Layout.createSequentialGroup()
                        .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblNomEvalElim)
                            .addComponent(txtNomEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11)
                        .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblApeEvalElim)
                            .addComponent(txtApeEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtExpLabEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEstEvalElim)
                    .addComponent(txtEstEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEspEvalElim)
                    .addComponent(txtEspEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTelEvalElim)
                    .addComponent(txtTelEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEmaEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEmaEvalElim))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtLogEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblLogEvalElim))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblPasEvalElim)
                    .addComponent(txtPasEvalElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        btEliminarEvalua.setText("Eliminar Evaluador");
        btEliminarEvalua.setEnabled(false);
        btEliminarEvalua.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btEliminarEvaluaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel32Layout = new javax.swing.GroupLayout(jPanel32);
        jPanel32.setLayout(jPanel32Layout);
        jPanel32Layout.setHorizontalGroup(
            jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel32Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btEliminarEvalua)
                    .addComponent(jPanel41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(190, Short.MAX_VALUE))
        );
        jPanel32Layout.setVerticalGroup(
            jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel32Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(11, 11, 11)
                .addComponent(btEliminarEvalua)
                .addContainerGap(103, Short.MAX_VALUE))
        );

        jTabbedPane3.addTab("Eliminar Evaluador", jPanel32);

        javax.swing.GroupLayout panGestionEvaluadoresLayout = new javax.swing.GroupLayout(panGestionEvaluadores);
        panGestionEvaluadores.setLayout(panGestionEvaluadoresLayout);
        panGestionEvaluadoresLayout.setHorizontalGroup(
            panGestionEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panGestionEvaluadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 870, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );
        panGestionEvaluadoresLayout.setVerticalGroup(
            panGestionEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panGestionEvaluadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 542, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );

        pestana1.addTab("Gestion de Evaluadores", panGestionEvaluadores);

        jPanel3.setMinimumSize(new java.awt.Dimension(0, 0));
        jPanel3.setPreferredSize(new java.awt.Dimension(947, 1294));

        jTabbedPane2.setPreferredSize(new java.awt.Dimension(700, 400));

        jPanel11.setPreferredSize(new java.awt.Dimension(922, 917));

        jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Personales"));
        jPanel19.setPreferredSize(new java.awt.Dimension(598, 293));

        lbCodDepto.setText("Codigo");

        lblNomDepto.setText("Nombre");

        jLabel13.setText("Telefono");

        txtCodDepto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodDeptoActionPerformed(evt);
            }
        });
        txtCodDepto.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodDeptoFocusLost(evt);
            }
        });

        txtNomDepto.setEnabled(false);
        txtNomDepto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtNomDeptoActionPerformed(evt);
            }
        });
        txtNomDepto.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtNomDeptoFocusLost(evt);
            }
        });

        txtTelDepto.setEnabled(false);
        txtTelDepto.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtTelDeptoFocusLost(evt);
            }
        });

        jLabel14.setText("Descripcion:");

        txtDesDepto.setColumns(20);
        txtDesDepto.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDesDepto.setRows(5);
        txtDesDepto.setEnabled(false);
        txtDesDepto.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtDesDeptoFocusLost(evt);
            }
        });
        jScrollPane1.setViewportView(txtDesDepto);

        jLabel1.setText("Jefe Dpto");

        txtCodJefeDepto.setEnabled(false);
        txtCodJefeDepto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodJefeDeptoActionPerformed(evt);
            }
        });
        txtCodJefeDepto.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodJefeDeptoFocusLost(evt);
            }
        });

        btConsultarJefDeptoCr.setText("...");
        btConsultarJefDeptoCr.setEnabled(false);
        btConsultarJefDeptoCr.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btConsultarJefDeptoCrActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 589, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbCodDepto)
                            .addComponent(lblNomDepto)
                            .addComponent(jLabel13)
                            .addComponent(jLabel1))
                        .addGap(27, 27, 27)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addComponent(txtCodJefeDepto, javax.swing.GroupLayout.PREFERRED_SIZE, 321, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btConsultarJefDeptoCr))
                            .addComponent(txtCodDepto, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtNomDepto, javax.swing.GroupLayout.DEFAULT_SIZE, 362, Short.MAX_VALUE)
                            .addComponent(txtTelDepto))))
                .addContainerGap(17, Short.MAX_VALUE))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbCodDepto)
                    .addComponent(txtCodDepto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(7, 7, 7)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNomDepto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNomDepto))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelDepto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodJefeDepto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)
                    .addComponent(btConsultarJefDeptoCr))
                .addGap(18, 18, 18)
                .addComponent(jLabel14)
                .addGap(31, 31, 31)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                .addContainerGap())
        );

        btCrearDpto.setText("Crear Dpto");
        btCrearDpto.setEnabled(false);
        btCrearDpto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btCrearDptoActionPerformed(evt);
            }
        });

        LimpiarDatosDpto.setText("Limpiar Datos");
        LimpiarDatosDpto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LimpiarDatosDptoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addGap(49, 49, 49)
                .addComponent(btCrearDpto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(214, 214, 214)
                .addComponent(LimpiarDatosDpto)
                .addGap(534, 534, 534))
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, 627, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(247, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, 392, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btCrearDpto)
                    .addComponent(LimpiarDatosDpto))
                .addContainerGap())
        );

        jTabbedPane2.addTab("Crear Departamento", jPanel11);

        panModifDepto.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Generales"));
        panModifDepto.setPreferredSize(new java.awt.Dimension(598, 293));

        lblCodDeptoModif.setText("Codigo");

        lblNomDeptoModif.setText("Nombre");

        lblTelDeptoModif.setText("Telefono");

        txtCodDeptoModif.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodDeptoModifActionPerformed(evt);
            }
        });
        txtCodDeptoModif.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodDeptoModifFocusLost(evt);
            }
        });

        txtNomDeptoModif.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        txtNomDeptoModif.setEnabled(false);

        txtTelDeptoModif.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        txtTelDeptoModif.setEnabled(false);

        lblDesDeptoModif.setText("Descripción");

        txtDesDeptoModif.setColumns(20);
        txtDesDeptoModif.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDesDeptoModif.setRows(5);
        txtDesDeptoModif.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        txtDesDeptoModif.setEnabled(false);
        jScrollPane3.setViewportView(txtDesDeptoModif);

        txtCodJefeDeptoModif.setEnabled(false);
        txtCodJefeDeptoModif.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodJefeDeptoModifActionPerformed(evt);
            }
        });
        txtCodJefeDeptoModif.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodJefeDeptoModifFocusLost(evt);
            }
        });

        lblCodJefeDeptoModif.setText("Jefe Dpto");

        btConsultarJefeDpto.setText("...");
        btConsultarJefeDpto.setEnabled(false);
        btConsultarJefeDpto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btConsultarJefeDptoActionPerformed(evt);
            }
        });

        btConsultarJefeDptoModi.setText("...");
        btConsultarJefeDptoModi.setEnabled(false);
        btConsultarJefeDptoModi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btConsultarJefeDptoModiActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panModifDeptoLayout = new javax.swing.GroupLayout(panModifDepto);
        panModifDepto.setLayout(panModifDeptoLayout);
        panModifDeptoLayout.setHorizontalGroup(
            panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panModifDeptoLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 534, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panModifDeptoLayout.createSequentialGroup()
                        .addGroup(panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblCodDeptoModif)
                            .addComponent(lblNomDeptoModif)
                            .addComponent(lblTelDeptoModif)
                            .addComponent(lblCodJefeDeptoModif))
                        .addGap(36, 36, 36)
                        .addGroup(panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(panModifDeptoLayout.createSequentialGroup()
                                .addComponent(txtCodDeptoModif, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(btConsultarJefeDptoModi))
                            .addComponent(txtNomDeptoModif, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                            .addComponent(txtTelDeptoModif)
                            .addGroup(panModifDeptoLayout.createSequentialGroup()
                                .addComponent(txtCodJefeDeptoModif, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(btConsultarJefeDpto))))
                    .addComponent(lblDesDeptoModif, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(74, Short.MAX_VALUE))
        );
        panModifDeptoLayout.setVerticalGroup(
            panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panModifDeptoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodDeptoModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCodDeptoModif)
                    .addComponent(btConsultarJefeDptoModi))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNomDeptoModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNomDeptoModif))
                .addGap(6, 6, 6)
                .addGroup(panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelDeptoModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTelDeptoModif))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panModifDeptoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodJefeDeptoModif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCodJefeDeptoModif)
                    .addComponent(btConsultarJefeDpto))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblDesDeptoModif, javax.swing.GroupLayout.DEFAULT_SIZE, 56, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(24, 24, 24))
        );

        btLimpDatosDepto.setText("Limpiar Datos");
        btLimpDatosDepto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btLimpDatosDeptoActionPerformed(evt);
            }
        });

        btModificarDepto.setText("Guardar Cambios");
        btModificarDepto.setEnabled(false);
        btModificarDepto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btModificarDeptoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(btModificarDepto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(175, 175, 175)
                .addComponent(btLimpDatosDepto)
                .addGap(573, 573, 573))
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panModifDepto, javax.swing.GroupLayout.PREFERRED_SIZE, 644, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(220, Short.MAX_VALUE))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGap(6, 6, 6)
                .addComponent(panModifDepto, javax.swing.GroupLayout.PREFERRED_SIZE, 338, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(34, 34, 34)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btModificarDepto)
                    .addComponent(btLimpDatosDepto))
                .addContainerGap(137, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Modificar Departamento", jPanel17);

        jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Personales"));
        jPanel23.setPreferredSize(new java.awt.Dimension(598, 293));

        lblCodDeptoElim.setText("Codigo");

        lblNomDeptoElim.setText("Nombre");

        lblTelDeptoElim.setText("Telefono");

        txtCodDeptoElim.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodDeptoElimFocusLost(evt);
            }
        });

        txtNomDeptoElim.setEditable(false);
        txtNomDeptoElim.setDisabledTextColor(new java.awt.Color(0, 0, 0));

        txtTelDeptoElim.setEditable(false);

        lblDesDeptoElim.setText("Descripcion:");

        txtDesDeptoElim.setColumns(20);
        txtDesDeptoElim.setEditable(false);
        txtDesDeptoElim.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDesDeptoElim.setRows(5);
        txtDesDeptoElim.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        jScrollPane5.setViewportView(txtDesDeptoElim);

        btBuscarDptoElim.setText("Buscar");
        btBuscarDptoElim.setEnabled(false);
        btBuscarDptoElim.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btBuscarDptoElimActionPerformed(evt);
            }
        });

        lblCodJefeDeptoElim.setText("Jefe de Departamento");

        txtCodJefeDeptoElim.setEditable(false);

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblDesDeptoElim, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel23Layout.createSequentialGroup()
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTelDeptoElim)
                            .addComponent(lblCodDeptoElim)
                            .addComponent(lblNomDeptoElim))
                        .addGap(48, 48, 48)
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel23Layout.createSequentialGroup()
                                .addGap(2, 2, 2)
                                .addComponent(txtCodDeptoElim))
                            .addComponent(txtNomDeptoElim)
                            .addComponent(txtTelDeptoElim, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))
                        .addGap(33, 33, 33)
                        .addComponent(btBuscarDptoElim))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel23Layout.createSequentialGroup()
                        .addComponent(lblCodJefeDeptoElim)
                        .addGap(18, 18, 18)
                        .addComponent(txtCodJefeDeptoElim, javax.swing.GroupLayout.PREFERRED_SIZE, 321, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 553, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(42, Short.MAX_VALUE))
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodDeptoElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCodDeptoElim)
                    .addComponent(btBuscarDptoElim))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNomDeptoElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNomDeptoElim))
                .addGap(18, 18, 18)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelDeptoElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTelDeptoElim))
                .addGap(18, 18, 18)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCodJefeDeptoElim)
                    .addComponent(txtCodJefeDeptoElim, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 36, Short.MAX_VALUE)
                .addComponent(lblDesDeptoElim)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(24, 24, 24))
        );

        btBorrarDpto.setText("Eliminar Dpto");
        btBorrarDpto.setEnabled(false);
        btBorrarDpto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btBorrarDptoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(btBorrarDpto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(874, 874, 874))
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 634, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(230, Short.MAX_VALUE))))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 386, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30)
                .addComponent(btBorrarDpto)
                .addContainerGap(88, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Eliminar Departamento", jPanel18);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 879, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 566, Short.MAX_VALUE)
                .addContainerGap())
        );

        pestana1.addTab("Gestion de Dptos", new javax.swing.ImageIcon(getClass().getResource("/vista/dpto.png")), jPanel3); // NOI18N

        jTabbedPane4.setPreferredSize(new java.awt.Dimension(845, 300));

        panDataGeneralProyecto.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos generales"));

        lblCodProyCrear.setText("Codigo");

        lblNomProyCrear.setText("Nombre");

        lblEmpProyCrear.setText("Empleado");

        lblDepProyCrear.setText("Departamento");

        lblDesProyCrear.setText("Descripcion");

        btBusEmpProyCrear.setText("...");
        btBusEmpProyCrear.setToolTipText("Busqueda de un empleado que presenta el proyecto");

        btBusDepProyCrear.setText("...");
        btBusDepProyCrear.setToolTipText("Busqueda del departamento a presentar el proyecto");

        txtDesProyCrear.setColumns(20);
        txtDesProyCrear.setRows(5);
        jScrollPane2.setViewportView(txtDesProyCrear);

        javax.swing.GroupLayout panDataGeneralProyectoLayout = new javax.swing.GroupLayout(panDataGeneralProyecto);
        panDataGeneralProyecto.setLayout(panDataGeneralProyectoLayout);
        panDataGeneralProyectoLayout.setHorizontalGroup(
            panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDataGeneralProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panDataGeneralProyectoLayout.createSequentialGroup()
                        .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblNomProyCrear)
                            .addComponent(lblEmpProyCrear)
                            .addComponent(lblDepProyCrear)
                            .addComponent(lblDesProyCrear)
                            .addComponent(lblCodProyCrear))
                        .addGap(29, 29, 29)
                        .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panDataGeneralProyectoLayout.createSequentialGroup()
                                .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(txtDepProyCrear)
                                    .addComponent(txtEmpProyCrear, javax.swing.GroupLayout.PREFERRED_SIZE, 279, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(btBusDepProyCrear, 0, 0, Short.MAX_VALUE)
                                    .addComponent(btBusEmpProyCrear, javax.swing.GroupLayout.PREFERRED_SIZE, 32, Short.MAX_VALUE)))
                            .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(txtNomProyCrear, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtCodProyCrear, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panDataGeneralProyectoLayout.setVerticalGroup(
            panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDataGeneralProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodProyCrear, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCodProyCrear))
                .addGap(18, 18, 18)
                .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNomProyCrear)
                    .addComponent(txtNomProyCrear, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEmpProyCrear)
                    .addComponent(txtEmpProyCrear, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btBusEmpProyCrear))
                .addGap(21, 21, 21)
                .addGroup(panDataGeneralProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDepProyCrear)
                    .addComponent(txtDepProyCrear, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btBusDepProyCrear))
                .addGap(18, 18, 18)
                .addComponent(lblDesProyCrear)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(14, Short.MAX_VALUE))
        );

        btSubirProy.setText("Subir proyectos");
        btSubirProy.setEnabled(false);

        btLimpiarCamposProy.setText("Limpiar campos");

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Archivos del proyecto"));

        btnExaminar.setText("Examinar");
        btnExaminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarActionPerformed(evt);
            }
        });

        btnGuardarArchivoCr.setText("Guardese");
        btnGuardarArchivoCr.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarArchivoCrActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(btnGuardarArchivoCr)
                        .addContainerGap())
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(txtRutaArchivo, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addComponent(btnExaminar)
                        .addGap(24, 24, 24))))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtRutaArchivo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExaminar))
                .addGap(29, 29, 29)
                .addComponent(btnGuardarArchivoCr)
                .addContainerGap(219, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panCreaProyectoLayout = new javax.swing.GroupLayout(panCreaProyecto);
        panCreaProyecto.setLayout(panCreaProyectoLayout);
        panCreaProyectoLayout.setHorizontalGroup(
            panCreaProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCreaProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panCreaProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(panDataGeneralProyecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panCreaProyectoLayout.createSequentialGroup()
                        .addComponent(btSubirProy)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btLimpiarCamposProy)))
                .addGap(18, 18, 18)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        panCreaProyectoLayout.setVerticalGroup(
            panCreaProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCreaProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panCreaProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panDataGeneralProyecto, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(panCreaProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btSubirProy)
                    .addComponent(btLimpiarCamposProy))
                .addGap(193, 193, 193))
        );

        jTabbedPane4.addTab("Crear proyecto", panCreaProyecto);

        panModificarProyecto.setPreferredSize(new java.awt.Dimension(700, 589));

        panFinanzaProyModi.setBorder(javax.swing.BorderFactory.createTitledBorder("Financiamento del proyecto"));

        lblPresProyModi.setText("Presupuesto");

        lblAhoProyModi.setText("Ahorro esperado");

        lblRenProyModi.setText("Rentabilidad");

        txtPresProyModi.setEnabled(false);
        txtPresProyModi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtPresProyModiActionPerformed(evt);
            }
        });

        txtAhoProyModi.setEnabled(false);
        txtAhoProyModi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtAhoProyModiActionPerformed(evt);
            }
        });

        txtRenProyModi.setEnabled(false);

        javax.swing.GroupLayout panFinanzaProyModiLayout = new javax.swing.GroupLayout(panFinanzaProyModi);
        panFinanzaProyModi.setLayout(panFinanzaProyModiLayout);
        panFinanzaProyModiLayout.setHorizontalGroup(
            panFinanzaProyModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panFinanzaProyModiLayout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addGroup(panFinanzaProyModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblRenProyModi)
                    .addComponent(lblAhoProyModi)
                    .addComponent(lblPresProyModi))
                .addGap(31, 31, 31)
                .addGroup(panFinanzaProyModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtPresProyModi, javax.swing.GroupLayout.DEFAULT_SIZE, 292, Short.MAX_VALUE)
                    .addComponent(txtAhoProyModi)
                    .addComponent(txtRenProyModi))
                .addContainerGap(26, Short.MAX_VALUE))
        );
        panFinanzaProyModiLayout.setVerticalGroup(
            panFinanzaProyModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panFinanzaProyModiLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panFinanzaProyModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtPresProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblPresProyModi))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panFinanzaProyModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtAhoProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblAhoProyModi))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panFinanzaProyModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtRenProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblRenProyModi))
                .addContainerGap(47, Short.MAX_VALUE))
        );

        panEstadoProyecto.setBorder(javax.swing.BorderFactory.createTitledBorder("Caracteristicas principales"));

        rbtRegtProyModi.setText("Registrado");

        rbtEvalProyModi.setText("Evaluacion");

        rbtAcepProyModi.setText("Aceptado");

        rbtRechProyModi.setText("Rechazado");

        lblFecIniProyModi.setText("Fecha de inicio");

        lblFecFinProyModi.setText("Fecha de finalizacion");

        txtFecIniProyModi.setEnabled(false);
        txtFecIniProyModi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtFecIniProyModiActionPerformed(evt);
            }
        });

        txtFecFinProyModi.setEnabled(false);

        lblEstProyModi.setText("Estados");

        javax.swing.GroupLayout panEstadoProyectoLayout = new javax.swing.GroupLayout(panEstadoProyecto);
        panEstadoProyecto.setLayout(panEstadoProyectoLayout);
        panEstadoProyectoLayout.setHorizontalGroup(
            panEstadoProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEstadoProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panEstadoProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblFecIniProyModi)
                    .addComponent(lblFecFinProyModi)
                    .addGroup(panEstadoProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(txtFecFinProyModi, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtFecIniProyModi, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                    .addComponent(rbtRegtProyModi)
                    .addComponent(rbtEvalProyModi)
                    .addComponent(rbtAcepProyModi)
                    .addComponent(rbtRechProyModi)
                    .addComponent(lblEstProyModi))
                .addContainerGap())
        );
        panEstadoProyectoLayout.setVerticalGroup(
            panEstadoProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEstadoProyectoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(lblFecIniProyModi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtFecIniProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(19, 19, 19)
                .addComponent(lblFecFinProyModi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtFecFinProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblEstProyModi)
                .addGap(18, 18, 18)
                .addComponent(rbtRegtProyModi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtEvalProyModi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtAcepProyModi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtRechProyModi))
        );

        panDataGeneralProyecto1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos generales"));

        lblCodProyModi.setText("Codigo");

        lblNomProyModi.setText("Nombre");

        lblEmpProyModi.setText("Empleado");

        lblDepProyModi.setText("Departamento");

        lblDesProyModi.setText("Descripcion");

        txtNomProyModi.setEnabled(false);

        txtEmpProyModi.setEnabled(false);

        txtDepProyModi.setEnabled(false);

        btBusEmpProyModi.setText("...");
        btBusEmpProyModi.setToolTipText("Busqueda del empleado que presenta el proyecto");
        btBusEmpProyModi.setEnabled(false);

        btBusDepProyModi.setText("...");
        btBusDepProyModi.setToolTipText("Busqueda del departamento a presentar el proyecto");
        btBusDepProyModi.setEnabled(false);
        btBusDepProyModi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btBusDepProyModiActionPerformed(evt);
            }
        });

        txtDesProyModi.setColumns(20);
        txtDesProyModi.setRows(5);
        txtDesProyModi.setEnabled(false);
        jScrollPane4.setViewportView(txtDesProyModi);

        btBusProyModi.setText("...");
        btBusProyModi.setToolTipText("Busqueda de un proyecto registrado en sistema");

        javax.swing.GroupLayout panDataGeneralProyecto1Layout = new javax.swing.GroupLayout(panDataGeneralProyecto1);
        panDataGeneralProyecto1.setLayout(panDataGeneralProyecto1Layout);
        panDataGeneralProyecto1Layout.setHorizontalGroup(
            panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDataGeneralProyecto1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panDataGeneralProyecto1Layout.createSequentialGroup()
                        .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panDataGeneralProyecto1Layout.createSequentialGroup()
                                .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblNomProyModi)
                                    .addComponent(lblDepProyModi)
                                    .addComponent(lblEmpProyModi))
                                .addGap(10, 10, 10)
                                .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtNomProyModi, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
                                    .addComponent(txtCodProyModi, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
                                    .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(txtDepProyModi, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(txtEmpProyModi, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 279, Short.MAX_VALUE))))
                            .addGroup(panDataGeneralProyecto1Layout.createSequentialGroup()
                                .addComponent(lblCodProyModi)
                                .addGap(335, 335, 335)))
                        .addGap(18, 18, 18)
                        .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(btBusProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btBusEmpProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, 32, Short.MAX_VALUE)
                            .addComponent(btBusDepProyModi, 0, 0, Short.MAX_VALUE))
                        .addGap(20, 20, 20))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panDataGeneralProyecto1Layout.createSequentialGroup()
                        .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblDesProyModi)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 449, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        panDataGeneralProyecto1Layout.setVerticalGroup(
            panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDataGeneralProyecto1Layout.createSequentialGroup()
                .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCodProyModi)
                    .addComponent(txtCodProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btBusProyModi))
                .addGap(14, 14, 14)
                .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNomProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNomProyModi))
                .addGap(18, 18, 18)
                .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEmpProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btBusEmpProyModi)
                    .addComponent(lblEmpProyModi))
                .addGap(18, 18, 18)
                .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panDataGeneralProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txtDepProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(lblDepProyModi))
                    .addComponent(btBusDepProyModi))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblDesProyModi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12))
        );

        panArchivosModi.setBorder(javax.swing.BorderFactory.createTitledBorder("Archivos del proyecto"));

        javax.swing.GroupLayout panArchivosModiLayout = new javax.swing.GroupLayout(panArchivosModi);
        panArchivosModi.setLayout(panArchivosModiLayout);
        panArchivosModiLayout.setHorizontalGroup(
            panArchivosModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 316, Short.MAX_VALUE)
        );
        panArchivosModiLayout.setVerticalGroup(
            panArchivosModiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 163, Short.MAX_VALUE)
        );

        btModificarProy.setText("Guardar Cambios");
        btModificarProy.setEnabled(false);

        btLimpiaDatosProyModi.setText("Limpiar Datos");

        javax.swing.GroupLayout panModificarProyectoLayout = new javax.swing.GroupLayout(panModificarProyecto);
        panModificarProyecto.setLayout(panModificarProyectoLayout);
        panModificarProyectoLayout.setHorizontalGroup(
            panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panModificarProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(panDataGeneralProyecto1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(panFinanzaProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panModificarProyectoLayout.createSequentialGroup()
                        .addComponent(panEstadoProyecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btLimpiaDatosProyModi, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)
                            .addComponent(btModificarProy, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)))
                    .addComponent(panArchivosModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        panModificarProyectoLayout.setVerticalGroup(
            panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panModificarProyectoLayout.createSequentialGroup()
                .addGroup(panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panModificarProyectoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(panEstadoProyecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(panDataGeneralProyecto1, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(panModificarProyectoLayout.createSequentialGroup()
                        .addGap(67, 67, 67)
                        .addComponent(btModificarProy)
                        .addGap(24, 24, 24)
                        .addComponent(btLimpiaDatosProyModi)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panModificarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(panArchivosModi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panFinanzaProyModi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jTabbedPane4.addTab("Modificar Proyecto", panModificarProyecto);

        panDataGeneralProyecto2.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos generales"));

        lblCodProyRech.setText("Codigo");

        lblNomProyRech.setText("Nombre");

        lblNomEmpProyRech.setText("Empleado");

        lblDepProyRech.setText("Departamento");

        lblDesProyRech.setText("Descripcion");

        txtCodProyRech.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodProyRechActionPerformed(evt);
            }
        });

        txtNomProyRech.setEditable(false);

        txtNomEmpProyRech.setEditable(false);

        txtDepProyRech.setEditable(false);

        jButton9.setText("...");

        txtDesProyRech.setColumns(20);
        txtDesProyRech.setEditable(false);
        txtDesProyRech.setRows(5);
        jScrollPane6.setViewportView(txtDesProyRech);

        jButton3.setText("...");
        jButton3.setToolTipText("Busqueda de un proyecto registrado en sistema");

        javax.swing.GroupLayout panDataGeneralProyecto2Layout = new javax.swing.GroupLayout(panDataGeneralProyecto2);
        panDataGeneralProyecto2.setLayout(panDataGeneralProyecto2Layout);
        panDataGeneralProyecto2Layout.setHorizontalGroup(
            panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDataGeneralProyecto2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panDataGeneralProyecto2Layout.createSequentialGroup()
                        .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblNomProyRech)
                            .addComponent(lblNomEmpProyRech)
                            .addComponent(lblDepProyRech)
                            .addComponent(lblDesProyRech)
                            .addComponent(lblCodProyRech))
                        .addGap(29, 29, 29)
                        .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtDepProyRech, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtNomEmpProyRech)
                            .addComponent(txtNomProyRech)
                            .addComponent(txtCodProyRech, javax.swing.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE))
                        .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panDataGeneralProyecto2Layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panDataGeneralProyecto2Layout.createSequentialGroup()
                                .addGap(55, 55, 55)
                                .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(13, Short.MAX_VALUE))
        );
        panDataGeneralProyecto2Layout.setVerticalGroup(
            panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panDataGeneralProyecto2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCodProyRech)
                    .addComponent(jButton3))
                .addGap(18, 18, 18)
                .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNomProyRech)
                    .addComponent(txtNomProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNomEmpProyRech)
                    .addComponent(txtNomEmpProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(21, 21, 21)
                .addGroup(panDataGeneralProyecto2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDepProyRech)
                    .addComponent(txtDepProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton9))
                .addGap(18, 18, 18)
                .addComponent(lblDesProyRech)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panFinanzaProyecto1.setBorder(javax.swing.BorderFactory.createTitledBorder("Financiamento del proyecto"));

        lblPresProyRech.setText("Presupuesto");

        lblAhoProyRech.setText("Ahorro esperado");

        lblRenProyRech.setText("Rentabilidad");

        txtPresProyRech.setEditable(false);
        txtPresProyRech.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtPresProyRechActionPerformed(evt);
            }
        });

        txtAhoProyRech.setEditable(false);
        txtAhoProyRech.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtAhoProyRechActionPerformed(evt);
            }
        });

        txtRenProyRech.setEditable(false);

        javax.swing.GroupLayout panFinanzaProyecto1Layout = new javax.swing.GroupLayout(panFinanzaProyecto1);
        panFinanzaProyecto1.setLayout(panFinanzaProyecto1Layout);
        panFinanzaProyecto1Layout.setHorizontalGroup(
            panFinanzaProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panFinanzaProyecto1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panFinanzaProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblAhoProyRech)
                    .addComponent(lblPresProyRech)
                    .addComponent(lblRenProyRech))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE)
                .addGroup(panFinanzaProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtRenProyRech)
                    .addComponent(txtAhoProyRech, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtPresProyRech, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 318, Short.MAX_VALUE))
                .addContainerGap())
        );
        panFinanzaProyecto1Layout.setVerticalGroup(
            panFinanzaProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panFinanzaProyecto1Layout.createSequentialGroup()
                .addContainerGap(25, Short.MAX_VALUE)
                .addGroup(panFinanzaProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblPresProyRech)
                    .addComponent(txtPresProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(panFinanzaProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAhoProyRech)
                    .addComponent(txtAhoProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(panFinanzaProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRenProyRech)
                    .addComponent(txtRenProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        panEstadoProyecto1.setBorder(javax.swing.BorderFactory.createTitledBorder("Caracteristicas principales"));

        rbtRegisRech.setText("Registrado");
        rbtRegisRech.setEnabled(false);

        rbtEvalRech.setText("Evaluacion");
        rbtEvalRech.setEnabled(false);

        rbtAcepRech.setText("Aceptado");
        rbtAcepRech.setEnabled(false);

        lblFecIniProyRech.setText("Fecha de inicio");

        lblFecFinProyRech.setText("Fecha de finalizacion");

        txtFecIniProyRech.setEditable(false);

        txtFecFinProyRech.setEditable(false);

        jLabel31.setText("Estados");

        javax.swing.GroupLayout panEstadoProyecto1Layout = new javax.swing.GroupLayout(panEstadoProyecto1);
        panEstadoProyecto1.setLayout(panEstadoProyecto1Layout);
        panEstadoProyecto1Layout.setHorizontalGroup(
            panEstadoProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEstadoProyecto1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panEstadoProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblFecIniProyRech)
                    .addComponent(lblFecFinProyRech)
                    .addGroup(panEstadoProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(txtFecFinProyRech, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtFecIniProyRech, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE))
                    .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                    .addComponent(rbtRegisRech)
                    .addComponent(rbtEvalRech)
                    .addComponent(rbtAcepRech)
                    .addComponent(jLabel31))
                .addContainerGap())
        );
        panEstadoProyecto1Layout.setVerticalGroup(
            panEstadoProyecto1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEstadoProyecto1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(lblFecIniProyRech)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtFecIniProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(19, 19, 19)
                .addComponent(lblFecFinProyRech)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtFecFinProyRech, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel31)
                .addGap(18, 18, 18)
                .addComponent(rbtRegisRech)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtEvalRech)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rbtAcepRech)
                .addGap(26, 26, 26))
        );

        panArchProyRech.setBorder(javax.swing.BorderFactory.createTitledBorder("Archivos del proyecto"));

        javax.swing.GroupLayout panArchProyRechLayout = new javax.swing.GroupLayout(panArchProyRech);
        panArchProyRech.setLayout(panArchProyRechLayout);
        panArchProyRechLayout.setHorizontalGroup(
            panArchProyRechLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 339, Short.MAX_VALUE)
        );
        panArchProyRechLayout.setVerticalGroup(
            panArchProyRechLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 162, Short.MAX_VALUE)
        );

        btRechazaProy.setText("Rechazar Proyectos");

        javax.swing.GroupLayout panEliminarProyectoLayout = new javax.swing.GroupLayout(panEliminarProyecto);
        panEliminarProyecto.setLayout(panEliminarProyectoLayout);
        panEliminarProyectoLayout.setHorizontalGroup(
            panEliminarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEliminarProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panEliminarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(panFinanzaProyecto1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panDataGeneralProyecto2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(panEliminarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panEliminarProyectoLayout.createSequentialGroup()
                        .addComponent(panEstadoProyecto1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btRechazaProy, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE))
                    .addComponent(panArchProyRech, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        panEliminarProyectoLayout.setVerticalGroup(
            panEliminarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEliminarProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panEliminarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(panEliminarProyectoLayout.createSequentialGroup()
                        .addComponent(panDataGeneralProyecto2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(panFinanzaProyecto1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panEliminarProyectoLayout.createSequentialGroup()
                        .addGroup(panEliminarProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(panEstadoProyecto1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(panEliminarProyectoLayout.createSequentialGroup()
                                .addGap(52, 52, 52)
                                .addComponent(btRechazaProy)))
                        .addGap(18, 18, 18)
                        .addComponent(panArchProyRech, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane4.addTab("Eliminar Proyecto", panEliminarProyecto);

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 874, Short.MAX_VALUE)
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 538, Short.MAX_VALUE)
        );

        jTabbedPane4.addTab("Estado actual del proyecto", jPanel5);

        javax.swing.GroupLayout panGestionProyectoLayout = new javax.swing.GroupLayout(panGestionProyecto);
        panGestionProyecto.setLayout(panGestionProyectoLayout);
        panGestionProyectoLayout.setHorizontalGroup(
            panGestionProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panGestionProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 879, Short.MAX_VALUE)
                .addContainerGap())
        );
        panGestionProyectoLayout.setVerticalGroup(
            panGestionProyectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panGestionProyectoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 566, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pestana1.addTab("Gestion de Proyectos", new javax.swing.ImageIcon(getClass().getResource("/vista/construir.png")), panGestionProyecto); // NOI18N

        jPaneEvaluacionPROYECTO.setPreferredSize(new java.awt.Dimension(700, 400));

        panEvaluarProyectos.setBorder(javax.swing.BorderFactory.createTitledBorder("Evaluar Proyectos"));
        panEvaluarProyectos.setPreferredSize(new java.awt.Dimension(598, 293));

        jButton2.setText("Buscar Proyectos");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Código Proyecto", "Nombre proyecto", "Fecha de ingreso"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane7.setViewportView(jTable1);

        jButton4.setText("Consultar Proyectos");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panEvaluarProyectosLayout = new javax.swing.GroupLayout(panEvaluarProyectos);
        panEvaluarProyectos.setLayout(panEvaluarProyectosLayout);
        panEvaluarProyectosLayout.setHorizontalGroup(
            panEvaluarProyectosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEvaluarProyectosLayout.createSequentialGroup()
                .addGroup(panEvaluarProyectosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton2)
                    .addGroup(panEvaluarProyectosLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButton4))
                    .addGroup(panEvaluarProyectosLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 452, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(166, Short.MAX_VALUE))
        );
        panEvaluarProyectosLayout.setVerticalGroup(
            panEvaluarProyectosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panEvaluarProyectosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton4)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(263, 263, 263)
                .addComponent(jButton2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panEvaluarProyectos, javax.swing.GroupLayout.PREFERRED_SIZE, 644, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(220, Short.MAX_VALUE))
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(panEvaluarProyectos, javax.swing.GroupLayout.PREFERRED_SIZE, 338, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(177, Short.MAX_VALUE))
        );

        jPaneEvaluacionPROYECTO.addTab("Evaluar Proyectos", jPanel21);

        jPanel12.setPreferredSize(new java.awt.Dimension(922, 917));

        jPanelAsignarEvaluadores.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar Evaluadores"));
        jPanelAsignarEvaluadores.setPreferredSize(new java.awt.Dimension(598, 293));

        jButtonConsultarEva.setText("Consultar Evaluadores");
        jButtonConsultarEva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultarEvaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelAsignarEvaluadoresLayout = new javax.swing.GroupLayout(jPanelAsignarEvaluadores);
        jPanelAsignarEvaluadores.setLayout(jPanelAsignarEvaluadoresLayout);
        jPanelAsignarEvaluadoresLayout.setHorizontalGroup(
            jPanelAsignarEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAsignarEvaluadoresLayout.createSequentialGroup()
                .addComponent(jButtonConsultarEva)
                .addContainerGap(242, Short.MAX_VALUE))
        );
        jPanelAsignarEvaluadoresLayout.setVerticalGroup(
            jPanelAsignarEvaluadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAsignarEvaluadoresLayout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addComponent(jButtonConsultarEva)
                .addContainerGap(308, Short.MAX_VALUE))
        );

        jPanelAsignarEvaluadores1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Proyecto"));
        jPanelAsignarEvaluadores1.setPreferredSize(new java.awt.Dimension(598, 293));

        lbCodDepto2.setText("Código de proyecto:");

        jTextCodigoProy.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextCodigoProyActionPerformed(evt);
            }
        });

        jButtonBuscarAsigEva.setText("Buscar");
        jButtonBuscarAsigEva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarAsigEvaActionPerformed(evt);
            }
        });

        jLabel5.setText("Nombre de proyecto:");

        jLabel6.setText("Código Departamento:");

        jLabel7.setText("Nombre Departamento:");

        txtNomProyectoAsigEva.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        txtNomProyectoAsigEva.setEnabled(false);

        txtCodDeptoAsigEva.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        txtCodDeptoAsigEva.setEnabled(false);

        txtNomDeptoAsigEva.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        txtNomDeptoAsigEva.setEnabled(false);

        javax.swing.GroupLayout jPanelAsignarEvaluadores1Layout = new javax.swing.GroupLayout(jPanelAsignarEvaluadores1);
        jPanelAsignarEvaluadores1.setLayout(jPanelAsignarEvaluadores1Layout);
        jPanelAsignarEvaluadores1Layout.setHorizontalGroup(
            jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAsignarEvaluadores1Layout.createSequentialGroup()
                .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAsignarEvaluadores1Layout.createSequentialGroup()
                        .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelAsignarEvaluadores1Layout.createSequentialGroup()
                                .addGap(12, 12, 12)
                                .addComponent(lbCodDepto2))
                            .addGroup(jPanelAsignarEvaluadores1Layout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
                                    .addGroup(jPanelAsignarEvaluadores1Layout.createSequentialGroup()
                                        .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(2, 2, 2)))
                                .addGap(10, 10, 10)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(jPanelAsignarEvaluadores1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel7)
                        .addGap(23, 23, 23)))
                .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtNomDeptoAsigEva)
                    .addComponent(txtCodDeptoAsigEva)
                    .addComponent(jTextCodigoProy, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                    .addComponent(txtNomProyectoAsigEva, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarAsigEva)
                .addContainerGap())
        );
        jPanelAsignarEvaluadores1Layout.setVerticalGroup(
            jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAsignarEvaluadores1Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbCodDepto2)
                    .addComponent(jTextCodigoProy, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonBuscarAsigEva))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(txtNomProyectoAsigEva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(txtCodDeptoAsigEva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelAsignarEvaluadores1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(txtNomDeptoAsigEva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(216, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                .addContainerGap(465, Short.MAX_VALUE)
                .addComponent(jPanelAsignarEvaluadores, javax.swing.GroupLayout.PREFERRED_SIZE, 399, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanelAsignarEvaluadores1, javax.swing.GroupLayout.PREFERRED_SIZE, 424, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(440, Short.MAX_VALUE)))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(jPanelAsignarEvaluadores, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(123, Short.MAX_VALUE))
            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addComponent(jPanelAsignarEvaluadores1, javax.swing.GroupLayout.PREFERRED_SIZE, 392, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(124, Short.MAX_VALUE)))
        );

        jPaneEvaluacionPROYECTO.addTab("Asignar Evaluadores", jPanel12);

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPaneEvaluacionPROYECTO, javax.swing.GroupLayout.DEFAULT_SIZE, 879, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel24Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPaneEvaluacionPROYECTO, javax.swing.GroupLayout.DEFAULT_SIZE, 566, Short.MAX_VALUE)
                .addContainerGap())
        );

        pestana1.addTab("Evaluacion de Proyectos", jPanel24);

        jLabel3.setText("Codigo:");

        txtCodDeptoPDF.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCodDeptoPDFFocusLost(evt);
            }
        });

        btConsultarDptoPDF.setText("...");
        btConsultarDptoPDF.setEnabled(false);
        btConsultarDptoPDF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btConsultarDptoPDFActionPerformed(evt);
            }
        });

        reportePDFDepto.setText("Generar PDF");
        reportePDFDepto.setEnabled(false);
        reportePDFDepto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                reportePDFDeptoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(reportePDFDepto)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtCodDeptoPDF, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(btConsultarDptoPDF)))
                .addContainerGap(534, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(txtCodDeptoPDF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btConsultarDptoPDF))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(reportePDFDepto)
                .addContainerGap(462, Short.MAX_VALUE))
        );

        jTabbedPane5.addTab("por Departamento", jPanel8);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 879, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 566, Short.MAX_VALUE)
                .addContainerGap())
        );

        pestana1.addTab("Gestion de Reportes", jPanel7);

        jMenu1.setText("File");
        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pestana1, javax.swing.GroupLayout.DEFAULT_SIZE, 904, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pestana1, javax.swing.GroupLayout.DEFAULT_SIZE, 643, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botConsultarModifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botConsultarModifActionPerformed
        // if (evt.getSource() == jButton4) {
        //   jLayeredPane1.moveToFront(jPanel6);
        //    jLayeredPane1.moveToBack(jPanel11);
        // }
    }//GEN-LAST:event_botConsultarModifActionPerformed



    private void botCreaUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botCreaUsuarioActionPerformed

        int cedula = Integer.parseInt(txtCedula.getText());
        String nombre = txtNombre.getText();
        String apellidos = txtApellidos.getText();
        int dpto = Integer.parseInt(txtDpto.getText());
        String perfil="";
                Enumeration listaCargo = buttonGroup1.getElements();
                while(listaCargo.hasMoreElements()){
                    JCheckBox box = (JCheckBox)listaCargo.nextElement();
                    if(box.isSelected()){
                        perfil=box.getText();
                        System.out.println("Box "+box.getText()+" seleccionado");
                    }
                }
        String cargo =perfil;
        String direccion = txtDirResidencia.getText();
        String telefono = txtTelf.getText();
        String email = txtEmail.getText();
        String login = txtPass.getText();
        String pass = txtLogin.getText();


        EmpleadoJpaController empleado = new EmpleadoJpaController();
        Empleado miEmpleado = new Empleado(cedula, nombre, apellidos, dpto, cargo, login, pass);
        miEmpleado.setDireccion(direccion);
        miEmpleado.setTelf(telefono);
        miEmpleado.setEmail(email);

        if (empleado.findEmpleado(cedula) != null) {
            JOptionPane.showMessageDialog(this, "el usuario ya existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
        } else {

            try {
                empleado.create(miEmpleado);
            } catch (PreexistingEntityException ex) {
                Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, ex);
            } catch (Exception ex) {
                Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }

}//GEN-LAST:event_botCreaUsuarioActionPerformed

    private void botCrearEvaluadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botCrearEvaluadorActionPerformed
        // TODO add your handling code here:
        int codEvaluador = 0, telEvaluador = 0;
        String nomEvaluador = "", apeEvaluador = "", expLaboralEvaluador="", estudiosEvaluador="", especialidadEvaluador="", emailEvaluador="", loginEvaluador="", passEvaluador="";
        
        codEvaluador = Integer.parseInt(txtCedulaCrEval.getText());
        nomEvaluador = txtNombreCrEval.getText();
        apeEvaluador = txtApellidosCrEval.getText();
        expLaboralEvaluador = txtExpLabCrEval.getText();
        estudiosEvaluador = txtEstudiosCrEval.getText();
        especialidadEvaluador = txtEspecialidadCrEval.getText();
        telEvaluador = Integer.parseInt(txtTelfCrEval.getText());
        emailEvaluador = txtEmailCrEval.getText();
        loginEvaluador = txtLoginCrEval.getText();
        passEvaluador = txtPassCrEval.getText();
        
        EvaluadorJpaController evaluador = new EvaluadorJpaController();
        Evaluador miEvaluador = new Evaluador(codEvaluador, nomEvaluador, apeEvaluador, expLaboralEvaluador, estudiosEvaluador, especialidadEvaluador, telEvaluador, loginEvaluador, passEvaluador);
        if (evaluador.findEvaluador(codEvaluador) != null)
        {
            JOptionPane.showMessageDialog(this, "El evaluador ya existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
        } 
        else 
        {
            try 
            {
                evaluador.create(miEvaluador);
            }
            catch (PreexistingEntityException ex) 
            {
                Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, ex);
            }
            catch (Exception ex) 
            {
                Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_botCrearEvaluadorActionPerformed

    private void btModificarEvalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btModificarEvalActionPerformed
        // TODO add your handling code here:
        int codEvaluador = 0, telEvaluador = 0;
        String nomEvaluador = "", apeEvaluador = "", expLaboralEvaluador="", estudiosEvaluador="", especialidadEvaluador="", emailEvaluador="", loginEvaluador="", passEvaluador="";

        codEvaluador = Integer.parseInt(txtCodEvalModi.getText());
        nomEvaluador = txtNomEvalModi.getText();
        apeEvaluador = txtApeEvalModi.getText();
        expLaboralEvaluador = txtExpLabEvalModi.getText();
        estudiosEvaluador = txtEstEvalModi.getText();
        especialidadEvaluador = txtEspEvalModi.getText();
        telEvaluador = Integer.parseInt(txtTelEvalModi.getText());
        emailEvaluador = txtEmaEvalModi.getText();
        loginEvaluador = txtLogEvalModi.getText();
        passEvaluador = txtPasEvalModi.getText();

        EvaluadorJpaController evaluador = new EvaluadorJpaController();
        Evaluador miEvaluador = evaluador.findEvaluador(codEvaluador);
        miEvaluador.setNomEvaluador(nomEvaluador);
        miEvaluador.setApeEvaluador(apeEvaluador);
        miEvaluador.setExperienciaLab(expLaboralEvaluador);
        miEvaluador.setEstudios(estudiosEvaluador);
        miEvaluador.setEspecialidad(especialidadEvaluador);
        miEvaluador.setIdProyMan(telEvaluador);
        miEvaluador.setEmail(emailEvaluador);
        miEvaluador.setLogin(loginEvaluador);
        miEvaluador.setPass(passEvaluador);


        try {
            evaluador.edit(miEvaluador);
        } catch (NonexistentEntityException exc) {
            Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, exc);
        } catch (Exception e) {
            Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btModificarEvalActionPerformed

    private void botGuardarModifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botGuardarModifActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_botGuardarModifActionPerformed

    private void txtCodDeptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodDeptoActionPerformed
    }//GEN-LAST:event_txtCodDeptoActionPerformed

    private void btCrearDptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btCrearDptoActionPerformed
        // TODO add your handling code here:
        String nomDpto = null, desDpto = null, telDpto = null;
        int codDpto = 0, codJefeDpto = 0;

        codDpto = Integer.parseInt(txtCodDepto.getText());
        nomDpto = txtNomDepto.getText();
        telDpto = txtTelDepto.getText();
        desDpto = txtDesDepto.getText();
        codJefeDpto = Integer.parseInt(txtCodJefeDepto.getText());

        DepartamentoJpaController departamento = new DepartamentoJpaController();
        Departamento miDpto = new Departamento(codDpto, nomDpto, telDpto, desDpto, codJefeDpto);
        if (departamento.findDepartamento(codDpto) != null) {
            JOptionPane.showMessageDialog(this, "El depatamento ya existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
        } else {
            try {
                departamento.create(miDpto);
            } catch (PreexistingEntityException ex) {
                Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, ex);
            } catch (Exception ex) {
                Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_btCrearDptoActionPerformed

    private void btConsultarJefDeptoCrActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btConsultarJefDeptoCrActionPerformed
        // TODO add your handling code here:
        int codigoJefeDpto = 0;

        codigoJefeDpto = Integer.parseInt(txtCodJefeDeptoModif.getText());
        EmpleadoJpaController empleado = new EmpleadoJpaController();
        Empleado miEmpleado = empleado.findEmpleado(codigoJefeDpto);
        if (miEmpleado == null) {
            JOptionPane.showMessageDialog(this, "El Empleado no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            btCrearDpto.setEnabled(false);
        } else
        {
            btCrearDpto.setEnabled(true);
        }
    }//GEN-LAST:event_btConsultarJefDeptoCrActionPerformed

    private void LimpiarDatosDptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LimpiarDatosDptoActionPerformed
        // TODO add your handling code here:
        txtCodDepto.setText("");
        txtNomDepto.setText("");
        txtTelDepto.setText("");
        txtDesDepto.setText("");
        txtCodJefeDepto.setText("");
    }//GEN-LAST:event_LimpiarDatosDptoActionPerformed

    private void txtCodDeptoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodDeptoFocusLost
        // TODO add your handling code here:
        int codigo = 0;
        String inputCodigoDepto = "";
        try {
            codigo = Integer.parseInt(txtCodDepto.getText());
            inputCodigoDepto = txtCodDepto.getText();
            if( inputCodigoDepto.matches("([0-9]){3}")== false)
            {
                throw new Exception();
            }
            else
            {
                txtNomDepto.setEnabled(true);
            }
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato desconocido. Solo se permiten numeros enteros", "Error", JOptionPane.ERROR_MESSAGE);
            txtNomDepto.setEnabled(false);
        }
        catch(Exception e)
        {
            JOptionPane.showMessageDialog(null, "La entrada es invalida, debido a su tamaño. ", "Error", JOptionPane.ERROR_MESSAGE);
            txtNomDepto.setEnabled(false);
        }
    }//GEN-LAST:event_txtCodDeptoFocusLost

    private void txtCodJefeDeptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodJefeDeptoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodJefeDeptoActionPerformed

    private void txtCodJefeDeptoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodJefeDeptoFocusLost
        // TODO add your handling code here:
        int codigoJefeDepto = 0;
        String inputCodigoJefeDeptoCrea = "";

        try {
            codigoJefeDepto = Integer.parseInt(txtCodJefeDepto.getText());
            inputCodigoJefeDeptoCrea = txtCodJefeDepto.getText();
            if( inputCodigoJefeDeptoCrea.matches("([0-9]){6}")== false)
            {
                throw new Exception();
            }
            else
            {
                btCrearDpto.setEnabled(true);
            }
        }
        catch (NumberFormatException exc)
        {
            JOptionPane.showMessageDialog(null, "Formato no admitido", "Error", JOptionPane.ERROR_MESSAGE);
            btCrearDpto.setEnabled(false);
        }
        catch(Exception e)
        {
            JOptionPane.showMessageDialog(null, "La entrada es invalida, debido a su tamaño. ", "Error", JOptionPane.ERROR_MESSAGE);
            btCrearDpto.setEnabled(false);
        }
    }//GEN-LAST:event_txtCodJefeDeptoFocusLost

    private void btBuscarDptoModifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btBuscarDptoModifActionPerformed
        // TODO add your handling code here:
        int codigoDpto = 0;

        codigoDpto = Integer.parseInt(txtCodDeptoModif.getText());
        DepartamentoJpaController departamento = new DepartamentoJpaController();
        Departamento miDpto = departamento.findDepartamento(codigoDpto);
        if (miDpto == null) {
            JOptionPane.showMessageDialog(this, "El depatamento no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            btConsultarJefeDpto.setEnabled(false);
        } else {
            EmpleadoJpaController empleado = new EmpleadoJpaController();
            Empleado miEmpleado = empleado.findEmpleado(miDpto.getIdDirector());

            txtNomDeptoModif.setText(miDpto.getNomDepto());
            txtTelDeptoModif.setText(miDpto.getTelfDpto());
            txtDesDeptoModif.setText(miDpto.getDescripcion());
            txtCodJefeDeptoModif.setText(Integer.toString(miDpto.getIdDirector()));
            txtCodJefeDeptoModif.setToolTipText("Nombres: " + miEmpleado.getNomEmpleado() + " " + miEmpleado.getApeEmpleado());
            btConsultarJefeDpto.setEnabled(true);
            txtCodDeptoModif.setEnabled(false);
            txtNomDeptoModif.setEnabled(true);
            txtTelDeptoModif.setEnabled(true);
            txtDesDeptoModif.setEnabled(true);
            txtCodJefeDeptoModif.setEnabled(true);
        }
    }//GEN-LAST:event_btBuscarDptoModifActionPerformed

    private void txtCodDeptoModifFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodDeptoModifFocusLost
        // TODO add your handling code here:
        int codigo = 0;
        try {
            codigo = Integer.parseInt(txtCodDeptoModif.getText());
            btConsultarJefeDptoModi.setEnabled(true);
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato no admitido", "Error", JOptionPane.ERROR_MESSAGE);
            btConsultarJefeDptoModi.setEnabled(false);
        }
    }//GEN-LAST:event_txtCodDeptoModifFocusLost

    private void txtCodDeptoModifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodDeptoModifActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodDeptoModifActionPerformed

    private void btModificarDeptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btModificarDeptoActionPerformed
        // TODO add your handling code here:
        int codJefeDpto = 0, codDpto = 0;
        String nomDpto = null, telDpto = null, desDpto = null;

        codDpto = Integer.parseInt(txtCodDeptoModif.getText());
        nomDpto = txtNomDeptoModif.getText();
        telDpto = txtTelDeptoModif.getText();
        desDpto = txtDesDeptoModif.getText();
        codJefeDpto = Integer.parseInt(txtCodJefeDeptoModif.getText());
        btConsultarJefeDpto.setEnabled(false);
        txtCodDeptoModif.setEnabled(false);

        DepartamentoJpaController departamento = new DepartamentoJpaController();
        Departamento miDpto = departamento.findDepartamento(codDpto);
        miDpto.setNomDepto(nomDpto);
        miDpto.setTelfDpto(telDpto);
        miDpto.setDescripcion(desDpto);
        miDpto.setIdDirector(codJefeDpto);

        try {
            departamento.edit(miDpto);
        } catch (NonexistentEntityException exc) {
            Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, exc);
        } catch (Exception e) {
            Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, e);
        }


    }//GEN-LAST:event_btModificarDeptoActionPerformed

    private void txtCodJefeDeptoModifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodJefeDeptoModifActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodJefeDeptoModifActionPerformed

    private void btConsultarJefeDptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btConsultarJefeDptoActionPerformed
        // TODO add your handling code here:
        int codigoJefeDpto = 0;

        codigoJefeDpto = Integer.parseInt(txtCodJefeDeptoModif.getText());
        EmpleadoJpaController empleado = new EmpleadoJpaController();
        Empleado miEmpleado = empleado.findEmpleado(codigoJefeDpto);
        if (miEmpleado == null) {
            JOptionPane.showMessageDialog(this, "El depatamento no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            btModificarDepto.setEnabled(false);
        } else
        {
            btModificarDepto.setEnabled(true);
        }
    }//GEN-LAST:event_btConsultarJefeDptoActionPerformed

    private void txtCodJefeDeptoModifFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodJefeDeptoModifFocusLost
        // TODO add your handling code here:
        int codigo = 0;
        try {
            codigo = Integer.parseInt(txtCodJefeDeptoModif.getText());
            btModificarDepto.setEnabled(true);
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato no admitido", "Error", JOptionPane.ERROR_MESSAGE);
            btModificarDepto.setEnabled(false);
        }
    }//GEN-LAST:event_txtCodJefeDeptoModifFocusLost

    private void btLimpDatosDeptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btLimpDatosDeptoActionPerformed
        // TODO add your handling code here:
        txtCodDeptoModif.setText("");
        txtNomDeptoModif.setText("");
        txtTelDeptoModif.setText("");
        txtDesDeptoModif.setText("");
        txtCodJefeDeptoModif.setText("");

        txtCodDeptoModif.setEnabled(true);
        txtNomDeptoModif.setEnabled(false);
        txtTelDeptoModif.setEnabled(false);
        txtDesDeptoModif.setEnabled(false);
        txtCodJefeDeptoModif.setEnabled(false);
    }//GEN-LAST:event_btLimpDatosDeptoActionPerformed

    private void btBuscarDptoElimActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btBuscarDptoElimActionPerformed
        // TODO add your handling code here:
        int codigoDpto = 0;

        codigoDpto = Integer.parseInt(txtCodDeptoElim.getText());
        DepartamentoJpaController departamento = new DepartamentoJpaController();
        Departamento miDpto = departamento.findDepartamento(codigoDpto);
        if (miDpto == null) {
            JOptionPane.showMessageDialog(this, "El depatamento no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            btBorrarDpto.setEnabled(false);
        } else {
            txtNomDeptoElim.setText(miDpto.getNomDepto());
            txtTelDeptoElim.setText(miDpto.getTelfDpto());
            txtDesDeptoElim.setText(miDpto.getDescripcion());
            txtCodJefeDeptoElim.setText(Integer.toString(miDpto.getIdDirector()));
            btBorrarDpto.setEnabled(true);
        }
    }//GEN-LAST:event_btBuscarDptoElimActionPerformed

    private void txtCodDeptoElimFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodDeptoElimFocusLost
        // TODO add your handling code here:
        int codigo = 0;
        try {
            codigo = Integer.parseInt(txtCodDeptoElim.getText());
            btBuscarDptoElim.setEnabled(true);
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato no admitido", "Error", JOptionPane.ERROR_MESSAGE);
            btBuscarDptoElim.setEnabled(false);
        }
    }//GEN-LAST:event_txtCodDeptoElimFocusLost

    private void btBorrarDptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btBorrarDptoActionPerformed
        // TODO add your handling code here:
        int codDpto = 0;

        codDpto = Integer.parseInt(txtCodDeptoElim.getText());
        DepartamentoJpaController departamento = new DepartamentoJpaController();
        try {
            departamento.destroy(codDpto);
            JOptionPane.showMessageDialog(null, "Departamento borrado exitosamente", "Confirmación", JOptionPane.INFORMATION_MESSAGE);
        } catch (NonexistentEntityException exc) {
            Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, exc);
        }
    }//GEN-LAST:event_btBorrarDptoActionPerformed

    private void txtAhoProyModiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtAhoProyModiActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtAhoProyModiActionPerformed

    private void txtPresProyModiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPresProyModiActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtPresProyModiActionPerformed

    private void txtPresProyRechActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPresProyRechActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtPresProyRechActionPerformed

    private void txtAhoProyRechActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtAhoProyRechActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtAhoProyRechActionPerformed

    private void txtCodProyRechActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodProyRechActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodProyRechActionPerformed

    private void btBusDepProyModiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btBusDepProyModiActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btBusDepProyModiActionPerformed

    private void txtFecIniProyModiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtFecIniProyModiActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtFecIniProyModiActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton2ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButton4ActionPerformed

    private void jButtonConsultarEvaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConsultarEvaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButtonConsultarEvaActionPerformed

    private void jTextCodigoProyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextCodigoProyActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextCodigoProyActionPerformed

    private void jButtonBuscarAsigEvaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarAsigEvaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButtonBuscarAsigEvaActionPerformed

    private void botLimpiarEvalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botLimpiarEvalActionPerformed
        // TODO add your handling code here:
        txtCedulaCrEval.setText("");
        txtNombreCrEval.setText("");
        txtApellidosCrEval.setText("");
        txtExpLabCrEval.setText("");
        txtEstudiosCrEval.setText("");
        txtEspecialidadCrEval.setText("");
        txtTelfCrEval.setText("");
        txtEmailCrEval.setText("");
        txtLoginCrEval.setText("");
        txtPassCrEval.setText("");
        botCrearEvaluador.setEnabled(false);
    }//GEN-LAST:event_botLimpiarEvalActionPerformed

    private void btConsultarEvalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btConsultarEvalActionPerformed
        // TODO add your handling code here:
        int codigoEval = 0;

        codigoEval = Integer.parseInt(txtCodDeptoElim.getText());
        EvaluadorJpaController evaluador = new EvaluadorJpaController();
        Evaluador miEvaluador = evaluador.findEvaluador(codigoEval);
        if (miEvaluador == null) {
            JOptionPane.showMessageDialog(this, "El Evaluador no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            btLimpiaDatosEvalModiActionPerformed(evt);
            btModificarEval.setEnabled(false);
        } else {
            txtNomEvalModi.setText(miEvaluador.getNomEvaluador());
            txtApeEvalModi.setText(miEvaluador.getApeEvaluador());
            txtExpLabEvalModi.setText(miEvaluador.getExperienciaLab());
            txtEstEvalModi.setText(miEvaluador.getEstudios());
            txtEspEvalModi.setText(miEvaluador.getEspecialidad());
            txtTelEvalModi.setText(Integer.toString(miEvaluador.getIdProyMan()));
            txtEmaEvalModi.setText(miEvaluador.getEmail());
            txtLogEvalModi.setText(miEvaluador.getLogin());
            txtPasEvalModi.setText(miEvaluador.getPass());
            btModificarEval.setEnabled(true);
        }
    }//GEN-LAST:event_btConsultarEvalActionPerformed

    private void txtCodEvalModiFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodEvalModiFocusLost
        // TODO add your handling code here:
        int codigoEval = 0;
        try {
            codigoEval = Integer.parseInt(txtCodDeptoModif.getText());
            btConsultarEval.setEnabled(true);
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato no admitido", "Error", JOptionPane.ERROR_MESSAGE);
            btCrearDpto.setEnabled(false);
        }
    }//GEN-LAST:event_txtCodEvalModiFocusLost

    private void txtCedulaCrEvalFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCedulaCrEvalFocusLost
        // TODO add your handling code here:
        int codigoEval = 0;
        try {
            codigoEval = Integer.parseInt(txtCodDeptoModif.getText());
            botCrearEvaluador.setEnabled(true);
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato no admitido", "Error", JOptionPane.ERROR_MESSAGE);
            btCrearDpto.setEnabled(false);
        }
    }//GEN-LAST:event_txtCedulaCrEvalFocusLost

    private void btConsultarJefeDptoModiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btConsultarJefeDptoModiActionPerformed
        // TODO add your handling code here:
        int codigoDpto = 0;

        codigoDpto = Integer.parseInt(txtCodDeptoElim.getText());
        DepartamentoJpaController departamento = new DepartamentoJpaController();
        Departamento miDpto = departamento.findDepartamento(codigoDpto);
        if (miDpto == null) {
            JOptionPane.showMessageDialog(this, "El depatamento no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            txtNomDeptoModif.setEnabled(false);
            txtTelDeptoModif.setEnabled(false);
            txtDesDeptoModif.setEnabled(false);
            txtCodJefeDeptoModif.setEnabled(false);
        } 
        else
        {
            txtNomDeptoModif.setText(miDpto.getNomDepto());
            txtTelDeptoModif.setText(miDpto.getTelfDpto());
            txtDesDeptoModif.setText(miDpto.getDescripcion());
            txtCodJefeDeptoModif.setText(Integer.toString(miDpto.getIdDirector()));

            txtNomDeptoModif.setEnabled(true);
            txtTelDeptoModif.setEnabled(true);
            txtDesDeptoModif.setEnabled(true);
            txtCodJefeDeptoModif.setEnabled(true);
        }
    }//GEN-LAST:event_btConsultarJefeDptoModiActionPerformed

    private void btLimpiaDatosEvalModiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btLimpiaDatosEvalModiActionPerformed
        // TODO add your handling code here:
        txtCodEvalModi.setText("");
        txtNomEvalModi.setText("");
        txtApeEvalModi.setText("");
        txtExpLabEvalModi.setText("");
        txtEstEvalModi.setText("");
        txtEspEvalModi.setText("");
        txtTelEvalModi.setText("");
        txtEmaEvalModi.setText("");
        txtLogEvalModi.setText("");
        txtPasEvalModi.setText("");
        btModificarEval.setEnabled(false);
    }//GEN-LAST:event_btLimpiaDatosEvalModiActionPerformed

    private void txtCedulaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCedulaActionPerformed
        String input = txtCedula.getText();

        if (input.matches("([0-9]{6})")== false )
            JOptionPane.showMessageDialog(null, "el valor ingresado no es valido: su cedula es un valor numerico de 6 digitos");        // TODO add your handling code here:
    }//GEN-LAST:event_txtCedulaActionPerformed

    private void txtDptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDptoActionPerformed
       String input = txtDpto.getText();

        if ( input.matches("([0-9]{3})")== false )
            JOptionPane.showMessageDialog(null, "el valor ingresado no es valido: El Dpto es un valor numerico de 3 digitos");        // TODO add your handling code here:
    }//GEN-LAST:event_txtDptoActionPerformed

    private void txtNombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNombreActionPerformed
        String input = txtNombre.getText();
        String cadena= labelNombre.getText();
        validarPalabras(input, cadena);        // TODO add your handling code here:
    }//GEN-LAST:event_txtNombreActionPerformed

    private void txtApellidosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtApellidosActionPerformed
        String input = txtApellidos.getText();
        String cadena= labelApellidos.getText();
        validarPalabras(input, cadena);        // TODO add your handling code here:
    }//GEN-LAST:event_txtApellidosActionPerformed

    private void txtTelEvalModiFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtTelEvalModiFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_txtTelEvalModiFocusLost

    private void btConsultarCodElimActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btConsultarCodElimActionPerformed
        // TODO add your handling code here:
         int codigoEval = 0;

        codigoEval = Integer.parseInt(txtCodDeptoElim.getText());
        EvaluadorJpaController evaluador = new EvaluadorJpaController();
        Evaluador miEvaluador = evaluador.findEvaluador(codigoEval);
        if (miEvaluador == null) {
            JOptionPane.showMessageDialog(this, "El Evaluador no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            btLimpiaDatosEvalModiActionPerformed(evt);
            btEliminarEvalua.setEnabled(false);
        } else {
            txtNomEvalElim.setText(miEvaluador.getNomEvaluador());
            txtApeEvalElim.setText(miEvaluador.getApeEvaluador());
            txtExpLabEvalElim.setText(miEvaluador.getExperienciaLab());
            txtEstEvalElim.setText(miEvaluador.getEstudios());
            txtEspEvalElim.setText(miEvaluador.getEspecialidad());
            txtTelEvalElim.setText(Integer.toString(miEvaluador.getIdProyMan()));
            txtEmaEvalElim.setText(miEvaluador.getEmail());
            txtLogEvalElim.setText(miEvaluador.getLogin());
            txtPasEvalElim.setText(miEvaluador.getPass());
            btEliminarEvalua.setEnabled(true);
        }
    }//GEN-LAST:event_btConsultarCodElimActionPerformed

    private void txtCodEvalElimFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodEvalElimFocusLost
        // TODO add your handling code here:
        
    }//GEN-LAST:event_txtCodEvalElimFocusLost

    private void btEliminarEvaluaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btEliminarEvaluaActionPerformed
        // TODO add your handling code here:
        int codDpto = 0;

        codDpto = Integer.parseInt(txtCodDeptoElim.getText());
        EvaluadorJpaController evaluador = new EvaluadorJpaController();
        try {
            evaluador.destroy(codDpto);
            JOptionPane.showMessageDialog(null, "Evaluador Eliminado exitosamente", "Confirmación", JOptionPane.INFORMATION_MESSAGE);
        } catch (NonexistentEntityException exc) {
            Logger.getLogger(EasyFastProyectGUI.class.getName()).log(Level.SEVERE, null, exc);
        }
    }//GEN-LAST:event_btEliminarEvaluaActionPerformed

    private void btnExaminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarActionPerformed
       JFileChooser selectorArchivo = new JFileChooser();
       selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );
       int resultado = selectorArchivo.showOpenDialog( this );

       if ( resultado == JFileChooser.CANCEL_OPTION )
         return;

       File nombreArchivo = selectorArchivo.getSelectedFile();
 
      if ( nombreArchivo == null || nombreArchivo.getName().equals( "" ) )
         JOptionPane.showMessageDialog( this, "Nombre de archivo incorrecto",
            "Nombre de archivo incorrecto", JOptionPane.ERROR_MESSAGE );

       txtRutaArchivo.setText(nombreArchivo.getPath());
       
    }//GEN-LAST:event_btnExaminarActionPerformed

    private void btnGuardarArchivoCrActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarArchivoCrActionPerformed
        // TODO add your handling code here:        
        try {
            File inFile = new File(txtRutaArchivo.getText());            
            FileInputStream in = new FileInputStream(inFile);
            FileOutputStream out = new FileOutputStream(new File("E:/Mis Documentos/" + inFile.getName()));

            int c;
            while( (c = in.read() ) != -1)
            { out.write(c); }
            in.close();
            out.close();

    } catch (Exception e) {
        JOptionPane.showMessageDialog(null, "Error de escritura, archivo de errores","", 0);
    }
    }//GEN-LAST:event_btnGuardarArchivoCrActionPerformed

    private void txtNomDeptoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtNomDeptoFocusLost
        // TODO add your handling code here:
        String inputNombreDepto = "";
        try {
            inputNombreDepto = txtNomDepto.getText();
            if(inputNombreDepto.matches("([a-z\\sA-Z]){3,30}")== false)
            {
                throw new Exception();
            }
            else
            {
                txtTelDepto.setEnabled(true);             
            }
        }
        catch(Exception e)
        {
            JOptionPane.showMessageDialog(null, "La entrada es invalida, debido a su tamaño. ", "Error", JOptionPane.ERROR_MESSAGE);
            txtTelDepto.setEnabled(false);
        }
    }//GEN-LAST:event_txtNomDeptoFocusLost

    private void txtTelDeptoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtTelDeptoFocusLost
        // TODO add your handling code here:
        int telefonoDepto = 0;
        String inputCodigoDepto = "";
        try {
            telefonoDepto = Integer.parseInt(txtTelDepto.getText());
            inputCodigoDepto = txtTelDepto.getText();
            if( inputCodigoDepto.matches("([0-9]){7}")== false)
            {
                throw new Exception();
            }
            else
            {
                txtCodJefeDepto.setEnabled(true);
                txtDesDepto.setEnabled(true);
            }
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato desconocido. Solo se permiten numeros enteros", "Error", JOptionPane.ERROR_MESSAGE);
            txtCodJefeDepto.setEnabled(false);
            txtDesDepto.setEnabled(false);
        }
        catch(Exception e)
        {
            JOptionPane.showMessageDialog(null, "La entrada es invalida, debido a su tamaño. ", "Error", JOptionPane.ERROR_MESSAGE);
            txtCodJefeDepto.setEnabled(false);
            txtDesDepto.setEnabled(false);
        }
    }//GEN-LAST:event_txtTelDeptoFocusLost

    private void txtDesDeptoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtDesDeptoFocusLost
        // TODO add your handling code here:
        String inputNombreDepto = "";
        try {
            inputNombreDepto = txtDesDepto.getText();
            if(inputNombreDepto.matches("([a-z\\sA-Z]){1,300}")== false)
            {
                throw new Exception();
            }
        }
        catch(Exception e)
        {
            JOptionPane.showMessageDialog(null, "La entrada es invalida, debido a su tamaño. ", "Error", JOptionPane.ERROR_MESSAGE);
            txtDesDepto.setText("");
        }
    }//GEN-LAST:event_txtDesDeptoFocusLost

    private void txtNomDeptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNomDeptoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtNomDeptoActionPerformed

    private void btConsultarDptoPDFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btConsultarDptoPDFActionPerformed
        // TODO add your handling code here:
        int codigoDpto = 0;

        codigoDpto = Integer.parseInt(txtCodDeptoPDF.getText());
        DepartamentoJpaController departamento = new DepartamentoJpaController();
        Departamento miDpto = departamento.findDepartamento(codigoDpto);
        if (miDpto == null)
        {
            JOptionPane.showMessageDialog(this, "El departamento no existe", "Advertencia", JOptionPane.WARNING_MESSAGE);
            reportePDFDepto.setEnabled(false);
        }
        else
        {
            reportePDFDepto.setEnabled(true);
        }
    }//GEN-LAST:event_btConsultarDptoPDFActionPerformed

    private void txtCodDeptoPDFFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCodDeptoPDFFocusLost
        // TODO add your handling code here:
        int codigo = 0;
        String inputCodigoDepto = "";
        try {
            codigo = Integer.parseInt(txtCodDeptoPDF.getText());
            inputCodigoDepto = txtCodDeptoPDF.getText();
            if( inputCodigoDepto.matches("([0-9]){3}")== false)
            {
                throw new Exception();
            }
            else
            {
                btConsultarDptoPDF.setEnabled(true);
            }
        } catch (NumberFormatException exc) {
            JOptionPane.showMessageDialog(null, "Formato desconocido. Solo se permiten numeros enteros", "Error", JOptionPane.ERROR_MESSAGE);
            btConsultarDptoPDF.setEnabled(false);
        }
        catch(Exception e)
        {
            JOptionPane.showMessageDialog(null, "La entrada es invalida, debido a su tamaño. ", "Error", JOptionPane.ERROR_MESSAGE);
            btConsultarDptoPDF.setEnabled(false);
        }
    }//GEN-LAST:event_txtCodDeptoPDFFocusLost

    private void reportePDFDeptoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_reportePDFDeptoActionPerformed
        // TODO add your handling code here:
        ProyectoJpaController proyecto = new ProyectoJpaController();
        List<Proyecto> listadoProyectos = proyecto.buscarProyecto(Integer.parseInt(txtCodDeptoPDF.getText()));
        proyecto.generaReportes(listadoProyectos, "C:/prueba.pdf");        
    }//GEN-LAST:event_reportePDFDeptoActionPerformed

   public void validarPalabras(String parabra, String label){
             if ( parabra.matches("([a-z\\sA-Z]){1,50}")== false)
            JOptionPane.showMessageDialog(null, "El "+label+" no es Valido", "Error", JOptionPane.ERROR_MESSAGE);
    }  
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                try {

                    JFrame.setDefaultLookAndFeelDecorated(true);
                    SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.BusinessBlueSteelSkin");
                    SubstanceLookAndFeel.setCurrentWatermark("org.jvnet.substance.watermark.SubstanceBinaryWatermark");
                    new EasyFastProyectGUI().setVisible(true);

                } catch (NoClassDefFoundError e) {
                    System.err.println("No se cargo LookAndFeel!");
                    e.printStackTrace();
                    System.out.println(e.getCause().toString());
                }
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton LimpiarDatosDpto;
    private javax.swing.JButton botConsultarModif;
    private javax.swing.JButton botCreaUsuario;
    private javax.swing.JButton botCrearEvaluador;
    private javax.swing.JButton botEliminarUsuario;
    private javax.swing.JButton botGuardarModif;
    private javax.swing.JButton botLimpiarCampos;
    private javax.swing.JButton botLimpiarEval;
    private javax.swing.JButton btBorrarDpto;
    private javax.swing.JButton btBusDepProyCrear;
    private javax.swing.JButton btBusDepProyModi;
    private javax.swing.JButton btBusEmpProyCrear;
    private javax.swing.JButton btBusEmpProyModi;
    private javax.swing.JButton btBusProyModi;
    private javax.swing.JButton btBuscarDptoElim;
    private javax.swing.JButton btConsultarCodElim;
    private javax.swing.JButton btConsultarDptoPDF;
    private javax.swing.JButton btConsultarEval;
    private javax.swing.JButton btConsultarJefDeptoCr;
    private javax.swing.JButton btConsultarJefeDpto;
    private javax.swing.JButton btConsultarJefeDptoModi;
    private javax.swing.JButton btCrearDpto;
    private javax.swing.JButton btEliminarEvalua;
    private javax.swing.JButton btLimpDatosDepto;
    private javax.swing.JButton btLimpiaDatosEvalModi;
    private javax.swing.JButton btLimpiaDatosProyModi;
    private javax.swing.JButton btLimpiarCamposProy;
    private javax.swing.JButton btModificarDepto;
    private javax.swing.JButton btModificarEval;
    private javax.swing.JButton btModificarProy;
    private javax.swing.JButton btRechazaProy;
    private javax.swing.JButton btSubirProy;
    private javax.swing.JButton btnExaminar;
    private javax.swing.JButton btnGuardarArchivoCr;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton9;
    private javax.swing.JButton jButtonBuscarAsigEva;
    private javax.swing.JButton jButtonConsultarEva;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox10;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JCheckBox jCheckBox5;
    private javax.swing.JCheckBox jCheckBox6;
    private javax.swing.JCheckBox jCheckBox7;
    private javax.swing.JCheckBox jCheckBox8;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JTabbedPane jPaneEvaluacionPROYECTO;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel32;
    private javax.swing.JPanel jPanel38;
    private javax.swing.JPanel jPanel39;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel40;
    private javax.swing.JPanel jPanel41;
    private javax.swing.JPanel jPanel43;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPanel jPanelAsignarEvaluadores;
    private javax.swing.JPanel jPanelAsignarEvaluadores1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JTabbedPane jTabbedPane3;
    private javax.swing.JTabbedPane jTabbedPane4;
    private javax.swing.JTabbedPane jTabbedPane5;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextField jTextCodigoProy;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JLabel labelApellidos;
    private javax.swing.JLabel labelApellidosCrEval;
    private javax.swing.JLabel labelApellidosEliminar;
    private javax.swing.JLabel labelApellidosModif;
    private javax.swing.JLabel labelCedula;
    private javax.swing.JLabel labelCedulaCrEval;
    private javax.swing.JLabel labelCedulaEliminar;
    private javax.swing.JLabel labelCedulaModif;
    private javax.swing.JLabel labelEmail;
    private javax.swing.JLabel labelEmailCrEval;
    private javax.swing.JLabel labelEmailEliminar;
    private javax.swing.JLabel labelEmailModif;
    private javax.swing.JLabel labelEspecialidad;
    private javax.swing.JLabel labelEspecialidadCrEval;
    private javax.swing.JLabel labelEspecialidadEliminar;
    private javax.swing.JLabel labelEstudiosCrEval;
    private javax.swing.JLabel labelEstudiosEliminar;
    private javax.swing.JLabel labelExpLabCrEval;
    private javax.swing.JLabel labelExpLaboral;
    private javax.swing.JLabel labelExpLaboralEliminar;
    private javax.swing.JLabel labelExpLaboralModif;
    private javax.swing.JLabel labelLogin;
    private javax.swing.JLabel labelLoginCrEval;
    private javax.swing.JLabel labelLoginEliminar;
    private javax.swing.JLabel labelLoginModif;
    private javax.swing.JLabel labelNombre;
    private javax.swing.JLabel labelNombreCrEval;
    private javax.swing.JLabel labelNombreEliminar;
    private javax.swing.JLabel labelNombreModif;
    private javax.swing.JLabel labelPass;
    private javax.swing.JLabel labelPassCrEval;
    private javax.swing.JLabel labelPassEliminar;
    private javax.swing.JLabel labelPassModif;
    private javax.swing.JLabel labelTelf;
    private javax.swing.JLabel labelTelfCrEval;
    private javax.swing.JLabel labelTelfEliminar;
    private javax.swing.JLabel labelTelfModif;
    private javax.swing.JLabel lbCodDepto;
    private javax.swing.JLabel lbCodDepto2;
    private javax.swing.JLabel lblAhoProyModi;
    private javax.swing.JLabel lblAhoProyRech;
    private javax.swing.JLabel lblApeEvalElim;
    private javax.swing.JLabel lblApeEvalModi;
    private javax.swing.JLabel lblCodDeptoElim;
    private javax.swing.JLabel lblCodDeptoModif;
    private javax.swing.JLabel lblCodEvalElim;
    private javax.swing.JLabel lblCodEvalModi;
    private javax.swing.JLabel lblCodJefeDeptoElim;
    private javax.swing.JLabel lblCodJefeDeptoModif;
    private javax.swing.JLabel lblCodProyCrear;
    private javax.swing.JLabel lblCodProyModi;
    private javax.swing.JLabel lblCodProyRech;
    private javax.swing.JLabel lblDepProyCrear;
    private javax.swing.JLabel lblDepProyModi;
    private javax.swing.JLabel lblDepProyRech;
    private javax.swing.JLabel lblDesDeptoElim;
    private javax.swing.JLabel lblDesDeptoModif;
    private javax.swing.JLabel lblDesProyCrear;
    private javax.swing.JLabel lblDesProyModi;
    private javax.swing.JLabel lblDesProyRech;
    private javax.swing.JLabel lblEmaEvalElim;
    private javax.swing.JLabel lblEmaEvalModi;
    private javax.swing.JLabel lblEmpProyCrear;
    private javax.swing.JLabel lblEmpProyModi;
    private javax.swing.JLabel lblEspEvalElim;
    private javax.swing.JLabel lblEspEvalModi;
    private javax.swing.JLabel lblEstEvalElim;
    private javax.swing.JLabel lblEstEvalModi;
    private javax.swing.JLabel lblEstProyModi;
    private javax.swing.JLabel lblExpLabEvalElim;
    private javax.swing.JLabel lblExpLabEvalModi;
    private javax.swing.JLabel lblFecFinProyModi;
    private javax.swing.JLabel lblFecFinProyRech;
    private javax.swing.JLabel lblFecIniProyModi;
    private javax.swing.JLabel lblFecIniProyRech;
    private javax.swing.JLabel lblLogEvalElim;
    private javax.swing.JLabel lblLogEvalModi;
    private javax.swing.JLabel lblNomDepto;
    private javax.swing.JLabel lblNomDeptoElim;
    private javax.swing.JLabel lblNomDeptoModif;
    private javax.swing.JLabel lblNomEmpProyRech;
    private javax.swing.JLabel lblNomEvalElim;
    private javax.swing.JLabel lblNomProyCrear;
    private javax.swing.JLabel lblNomProyModi;
    private javax.swing.JLabel lblNomProyRech;
    private javax.swing.JLabel lblPasEvalElim;
    private javax.swing.JLabel lblPasEvalModi;
    private javax.swing.JLabel lblPresProyModi;
    private javax.swing.JLabel lblPresProyRech;
    private javax.swing.JLabel lblRenProyModi;
    private javax.swing.JLabel lblRenProyRech;
    private javax.swing.JLabel lblTelDeptoElim;
    private javax.swing.JLabel lblTelDeptoModif;
    private javax.swing.JLabel lblTelEvalElim;
    private javax.swing.JLabel lblTelEvalModi;
    private javax.swing.JLabel lblnomEvalModi;
    private javax.swing.JPanel panArchProyRech;
    private javax.swing.JPanel panArchivosModi;
    private javax.swing.JPanel panBorrarUsuario;
    private javax.swing.JPanel panCreaProyecto;
    private javax.swing.JPanel panCreaUsuario;
    private javax.swing.JPanel panCrearEvaluador;
    private javax.swing.JPanel panDataGeneralProyecto;
    private javax.swing.JPanel panDataGeneralProyecto1;
    private javax.swing.JPanel panDataGeneralProyecto2;
    private javax.swing.JPanel panDatosEvalModi;
    private javax.swing.JPanel panEliminarProyecto;
    private javax.swing.JPanel panEstadoProyecto;
    private javax.swing.JPanel panEstadoProyecto1;
    private javax.swing.JPanel panEvaluarProyectos;
    private javax.swing.JPanel panFinanzaProyModi;
    private javax.swing.JPanel panFinanzaProyecto1;
    private javax.swing.JPanel panGestionEvaluadores;
    private javax.swing.JPanel panGestionProyecto;
    private javax.swing.JPanel panGestionUsuarios;
    private javax.swing.JPanel panModifDepto;
    private javax.swing.JPanel panModifEvaluador;
    private javax.swing.JPanel panModifUsuario;
    private javax.swing.JPanel panModificarProyecto;
    private javax.swing.JTabbedPane pestana1;
    private javax.swing.JRadioButton rbtAcepProyModi;
    private javax.swing.JRadioButton rbtAcepRech;
    private javax.swing.JRadioButton rbtEvalProyModi;
    private javax.swing.JRadioButton rbtEvalRech;
    private javax.swing.JRadioButton rbtRechProyModi;
    private javax.swing.JRadioButton rbtRegisRech;
    private javax.swing.JRadioButton rbtRegtProyModi;
    private javax.swing.JButton reportePDFDepto;
    private javax.swing.JTextField txtAhoProyModi;
    private javax.swing.JTextField txtAhoProyRech;
    private javax.swing.JTextField txtApeEvalElim;
    private javax.swing.JTextField txtApeEvalModi;
    private javax.swing.JTextField txtApellidos;
    private javax.swing.JTextField txtApellidosCrEval;
    private javax.swing.JTextField txtApellidosEliminar;
    private javax.swing.JTextField txtApellidosModif;
    private javax.swing.JTextField txtCedula;
    private javax.swing.JTextField txtCedulaCrEval;
    private javax.swing.JTextField txtCedulaEliminar;
    private javax.swing.JTextField txtCedulaModif;
    private javax.swing.JTextField txtCodDepto;
    private javax.swing.JTextField txtCodDeptoAsigEva;
    private javax.swing.JTextField txtCodDeptoElim;
    private javax.swing.JTextField txtCodDeptoModif;
    private javax.swing.JTextField txtCodDeptoPDF;
    private javax.swing.JTextField txtCodEvalElim;
    private javax.swing.JTextField txtCodEvalModi;
    private javax.swing.JTextField txtCodJefeDepto;
    private javax.swing.JTextField txtCodJefeDeptoElim;
    private javax.swing.JTextField txtCodJefeDeptoModif;
    private javax.swing.JTextField txtCodProyCrear;
    private javax.swing.JTextField txtCodProyModi;
    private javax.swing.JTextField txtCodProyRech;
    private javax.swing.JTextField txtDepProyCrear;
    private javax.swing.JTextField txtDepProyModi;
    private javax.swing.JTextField txtDepProyRech;
    private javax.swing.JTextArea txtDesDepto;
    private javax.swing.JTextArea txtDesDeptoElim;
    private javax.swing.JTextArea txtDesDeptoModif;
    private javax.swing.JTextArea txtDesProyCrear;
    private javax.swing.JTextArea txtDesProyModi;
    private javax.swing.JTextArea txtDesProyRech;
    private javax.swing.JTextField txtDirResidencia;
    private javax.swing.JTextField txtDpto;
    private javax.swing.JTextField txtEmaEvalElim;
    private javax.swing.JTextField txtEmaEvalModi;
    private javax.swing.JTextField txtEmail;
    private javax.swing.JTextField txtEmailCrEval;
    private javax.swing.JTextField txtEmailEliminar;
    private javax.swing.JTextField txtEmailModif;
    private javax.swing.JTextField txtEmpProyCrear;
    private javax.swing.JTextField txtEmpProyModi;
    private javax.swing.JTextField txtEspEvalElim;
    private javax.swing.JTextField txtEspEvalModi;
    private javax.swing.JTextField txtEspecialidadCrEval;
    private javax.swing.JTextField txtEspecialidadEliminar;
    private javax.swing.JTextField txtEstEvalElim;
    private javax.swing.JTextField txtEstEvalModi;
    private javax.swing.JTextField txtEstudiosCrEval;
    private javax.swing.JTextField txtEstudiosEliminar;
    private javax.swing.JTextField txtExpLabCrEval;
    private javax.swing.JTextField txtExpLabEvalElim;
    private javax.swing.JTextField txtExpLabEvalModi;
    private javax.swing.JTextField txtExpLaboralEliminar;
    private javax.swing.JTextField txtExpLaboralModif;
    private javax.swing.JTextField txtFecFinProyModi;
    private javax.swing.JTextField txtFecFinProyRech;
    private javax.swing.JTextField txtFecIniProyModi;
    private javax.swing.JTextField txtFecIniProyRech;
    private javax.swing.JTextField txtLogEvalElim;
    private javax.swing.JTextField txtLogEvalModi;
    private javax.swing.JTextField txtLogin;
    private javax.swing.JTextField txtLoginCrEval;
    private javax.swing.JTextField txtLoginEliminar;
    private javax.swing.JTextField txtLoginModif;
    private javax.swing.JTextField txtNomDepto;
    private javax.swing.JTextField txtNomDeptoAsigEva;
    private javax.swing.JTextField txtNomDeptoElim;
    private javax.swing.JTextField txtNomDeptoModif;
    private javax.swing.JTextField txtNomEmpProyRech;
    private javax.swing.JTextField txtNomEvalElim;
    private javax.swing.JTextField txtNomEvalModi;
    private javax.swing.JTextField txtNomProyCrear;
    private javax.swing.JTextField txtNomProyModi;
    private javax.swing.JTextField txtNomProyRech;
    private javax.swing.JTextField txtNomProyectoAsigEva;
    private javax.swing.JTextField txtNombre;
    private javax.swing.JTextField txtNombreCrEval;
    private javax.swing.JTextField txtNombreEliminar;
    private javax.swing.JTextField txtNombreModif;
    private javax.swing.JTextField txtPasEvalElim;
    private javax.swing.JTextField txtPasEvalModi;
    private javax.swing.JTextField txtPass;
    private javax.swing.JTextField txtPassCrEval;
    private javax.swing.JTextField txtPassEliminar;
    private javax.swing.JTextField txtPassModif;
    private javax.swing.JTextField txtPresProyModi;
    private javax.swing.JTextField txtPresProyRech;
    private javax.swing.JTextField txtRenProyModi;
    private javax.swing.JTextField txtRenProyRech;
    private javax.swing.JTextField txtRutaArchivo;
    private javax.swing.JTextField txtTelDepto;
    private javax.swing.JTextField txtTelDeptoElim;
    private javax.swing.JTextField txtTelDeptoModif;
    private javax.swing.JTextField txtTelEvalElim;
    private javax.swing.JTextField txtTelEvalModi;
    private javax.swing.JTextField txtTelf;
    private javax.swing.JTextField txtTelfCrEval;
    private javax.swing.JTextField txtTelfEliminar;
    private javax.swing.JTextField txtTelfModif;
    // End of variables declaration//GEN-END:variables
}
